view shader.vert @ 48:0ae1ff609626

Implement diffuse setting for models in scenefile. Also refactor parsing/handling of ambient/diffuse/specular values and unify it for both models and lights.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 06 Dec 2019 01:12:23 +0200
parents d2839cbfaad8
children
line wrap: on
line source

varying vec3 snormal;
varying vec3 svertex;


void main(void)
{
   svertex = vec3(gl_ModelViewMatrix * gl_Vertex);
   snormal = normalize(gl_NormalMatrix * gl_Normal);

   gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}