diff options
Diffstat (limited to 'o3d/compiler/glsl_validator/shaders/diffuse.vert')
-rw-r--r-- | o3d/compiler/glsl_validator/shaders/diffuse.vert | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/o3d/compiler/glsl_validator/shaders/diffuse.vert b/o3d/compiler/glsl_validator/shaders/diffuse.vert index a51b22a..e155901 100644 --- a/o3d/compiler/glsl_validator/shaders/diffuse.vert +++ b/o3d/compiler/glsl_validator/shaders/diffuse.vert @@ -6,8 +6,8 @@ uniform mat4 g_ModelViewMatrix; uniform mat4 g_NormalMatrix; uniform vec4 g_LightSource0Position; -attribute vec3 g_Vertex; -attribute vec3 g_Normal; +attribute vec4 g_Vertex; +attribute vec4 g_Normal; varying vec3 normal; varying vec3 vertex_to_light_vector; @@ -18,7 +18,7 @@ void main() gl_Position = g_ModelViewProjectionMatrix * g_Vertex; // Transforming The Normal To ModelView-Space - normal = g_NormalMatrix * g_Normal; + normal = vec3(g_NormalMatrix * g_Normal); // Transforming The Vertex Position To ModelView-Space vec4 vertex_in_modelview_space = g_ModelViewMatrix * g_Vertex; |