From 420b91db29485df39fd6e724e782c449158811cb Mon Sep 17 00:00:00 2001 From: James Cook Date: Tue, 2 Jan 2007 08:33:20 +0000 Subject: Print done when done. --- .../shaders/class1/objects/simpleV.glsl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 indra/newview/app_settings/shaders/class1/objects/simpleV.glsl (limited to 'indra/newview/app_settings/shaders/class1/objects/simpleV.glsl') diff --git a/indra/newview/app_settings/shaders/class1/objects/simpleV.glsl b/indra/newview/app_settings/shaders/class1/objects/simpleV.glsl new file mode 100644 index 0000000000..2aa3521931 --- /dev/null +++ b/indra/newview/app_settings/shaders/class1/objects/simpleV.glsl @@ -0,0 +1,21 @@ +vec4 calcLighting(vec3 pos, vec3 norm, vec4 color, vec4 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); + + default_scatter(pos, gl_LightSource[0].position.xyz); + + vec4 color = calcLighting(pos, norm, materialColor, gl_Color); + gl_FrontColor = color; + + gl_FogFragCoord = pos.z; +} -- cgit v1.2.3