Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

vmd.frag File Reference

Go to the source code of this file.

Functions

void main (void)
 VMD Fragment Shader. More...


Variables

varying vec3 oglnormal
 interpolated normal from the vertex shader. More...

varying vec3 oglcolor
 interpolated color from the vertex shader. More...

varying vec3 V
 view direction vector. More...

uniform vec3 vmdlight0
 light 0 direction. More...

uniform vec3 vmdlight1
 light 1 direction. More...

uniform vec3 vmdlight2
 light 2 direction. More...

uniform vec3 vmdlight3
 light 3 direction. More...

uniform vec3 vmdlight0H
 light 0 Blinn halfway vector. More...

uniform vec3 vmdlight1H
 light 1 Blinn halfway vector. More...

uniform vec3 vmdlight2H
 light 2 Blinn halfway vector. More...

uniform vec3 vmdlight3H
 light 3 Blinn halfway vector. More...

uniform vec4 vmdlightscale
 VMD light on/off state for all 4 VMD lights, represented as a scaling constant. Could be done with on/off flags but ATI doesn't deal well with branching constructs, so this value is simply multiplied by the light's contribution. Hacky, but it works for now. More...

uniform vec4 vmdmaterial
 VMD material properties [0] is ambient (white ambient light only) [1] is diffuse [2] is specular [3] is shininess. More...

uniform float vmdopacity
 VMD global alpha value. More...

uniform float vmdoutline
 VMD outline shading. More...

uniform float vmdoutlinewidth
 VMD outline shading width. More...

uniform int vmdtransmode
 VMD transparency mode. More...

uniform int vmdfogmode
 VMD depth cueing / fog mode. More...

uniform int vmdtexturemode
 VMD texture mode 0=off 1=modulate 2=replace. More...

uniform sampler3D vmdtex0
 active 3-D texture map. More...


Function Documentation

void main void   
 

VMD Fragment Shader.

Definition at line 71 of file vmd.frag.

References dot, oglcolor, oglnormal, V, vmdfogmode, vmdlight0, vmdlight0H, vmdlight1, vmdlight1H, vmdlight2, vmdlight2H, vmdlight3, vmdlight3H, vmdlightscale, vmdmaterial, vmdopacity, vmdoutline, vmdoutlinewidth, vmdtex0, vmdtexturemode, and vmdtransmode.


Variable Documentation

varying vec3 oglcolor
 

interpolated color from the vertex shader.

Definition at line 30 of file vmd.frag.

Referenced by main.

varying vec3 oglnormal
 

interpolated normal from the vertex shader.

Definition at line 29 of file vmd.frag.

Referenced by main.

varying vec3 V
 

view direction vector.

Definition at line 31 of file vmd.frag.

Referenced by main.

uniform int vmdfogmode
 

VMD depth cueing / fog mode.

Definition at line 63 of file vmd.frag.

Referenced by main.

uniform vec3 vmdlight0
 

light 0 direction.

Definition at line 32 of file vmd.frag.

Referenced by main.

uniform vec3 vmdlight0H
 

light 0 Blinn halfway vector.

Definition at line 37 of file vmd.frag.

Referenced by main.

uniform vec3 vmdlight1
 

light 1 direction.

Definition at line 33 of file vmd.frag.

Referenced by main.

uniform vec3 vmdlight1H
 

light 1 Blinn halfway vector.

Definition at line 38 of file vmd.frag.

Referenced by main.

uniform vec3 vmdlight2
 

light 2 direction.

Definition at line 34 of file vmd.frag.

Referenced by main.

uniform vec3 vmdlight2H
 

light 2 Blinn halfway vector.

Definition at line 39 of file vmd.frag.

Referenced by main.

uniform vec3 vmdlight3
 

light 3 direction.

Definition at line 35 of file vmd.frag.

Referenced by main.

uniform vec3 vmdlight3H
 

light 3 Blinn halfway vector.

Definition at line 40 of file vmd.frag.

Referenced by main.

uniform vec4 vmdlightscale
 

VMD light on/off state for all 4 VMD lights, represented as a scaling constant. Could be done with on/off flags but ATI doesn't deal well with branching constructs, so this value is simply multiplied by the light's contribution. Hacky, but it works for now.

Definition at line 42 of file vmd.frag.

Referenced by main.

uniform vec4 vmdmaterial
 

VMD material properties [0] is ambient (white ambient light only) [1] is diffuse [2] is specular [3] is shininess.

Definition at line 49 of file vmd.frag.

Referenced by main.

uniform float vmdopacity
 

VMD global alpha value.

Definition at line 55 of file vmd.frag.

Referenced by main.

uniform float vmdoutline
 

VMD outline shading.

Definition at line 57 of file vmd.frag.

Referenced by main.

uniform float vmdoutlinewidth
 

VMD outline shading width.

Definition at line 59 of file vmd.frag.

Referenced by main.

uniform sampler3D vmdtex0
 

active 3-D texture map.

Definition at line 66 of file vmd.frag.

Referenced by main.

uniform int vmdtexturemode
 

VMD texture mode 0=off 1=modulate 2=replace.

Definition at line 65 of file vmd.frag.

Referenced by main.

uniform int vmdtransmode
 

VMD transparency mode.

Definition at line 61 of file vmd.frag.

Referenced by main.


Generated on Thu Mar 28 02:44:53 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002