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... |
|
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. |
|
interpolated color from the vertex shader.
Definition at line 30 of file vmd.frag. Referenced by main. |
|
interpolated normal from the vertex shader.
Definition at line 29 of file vmd.frag. Referenced by main. |
|
view direction vector.
Definition at line 31 of file vmd.frag. Referenced by main. |
|
VMD depth cueing / fog mode.
Definition at line 63 of file vmd.frag. Referenced by main. |
|
light 0 direction.
Definition at line 32 of file vmd.frag. Referenced by main. |
|
light 0 Blinn halfway vector.
Definition at line 37 of file vmd.frag. Referenced by main. |
|
light 1 direction.
Definition at line 33 of file vmd.frag. Referenced by main. |
|
light 1 Blinn halfway vector.
Definition at line 38 of file vmd.frag. Referenced by main. |
|
light 2 direction.
Definition at line 34 of file vmd.frag. Referenced by main. |
|
light 2 Blinn halfway vector.
Definition at line 39 of file vmd.frag. Referenced by main. |
|
light 3 direction.
Definition at line 35 of file vmd.frag. Referenced by main. |
|
light 3 Blinn halfway vector.
Definition at line 40 of file vmd.frag. Referenced by main. |
|
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. |
|
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. |
|
VMD global alpha value.
Definition at line 55 of file vmd.frag. Referenced by main. |
|
VMD outline shading.
Definition at line 57 of file vmd.frag. Referenced by main. |
|
VMD outline shading width.
Definition at line 59 of file vmd.frag. Referenced by main. |
|
active 3-D texture map.
Definition at line 66 of file vmd.frag. Referenced by main. |
|
VMD texture mode 0=off 1=modulate 2=replace.
Definition at line 65 of file vmd.frag. Referenced by main. |
|
VMD transparency mode.
Definition at line 61 of file vmd.frag. Referenced by main. |