Mercurial > hg > forks > gldragon
view shader.vert @ 62:baccf2044289
Move the OpenGL rendering, setup etc. into a separate module/class, perhaps
facilitating other types of renderers in future .. maybe.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 14 Dec 2019 16:39:20 +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; }