diff options
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/avatar/eyeballV.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/avatar/eyeballV.glsl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class1/avatar/eyeballV.glsl b/indra/newview/app_settings/shaders/class1/avatar/eyeballV.glsl new file mode 100644 index 0000000000..d436b4e00a --- /dev/null +++ b/indra/newview/app_settings/shaders/class1/avatar/eyeballV.glsl @@ -0,0 +1,20 @@ +vec4 calcLighting(vec3 pos, vec3 norm, vec4 color, vec3 baseCol); +void default_scatter(vec3 viewVec, vec3 lightDir); + +attribute vec4 materialColor; + +void main() +{ + //transform vertex + gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; + gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0; + + vec3 pos = (gl_ModelViewMatrix * gl_Vertex).xyz; + vec3 norm = normalize(gl_NormalMatrix * gl_Normal); + + vec4 color = calcLighting(pos, norm, materialColor, gl_Color.rgb); + default_scatter(pos, gl_LightSource[0].position.xyz); + + gl_FrontColor = color; +} + |