This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
csce441pine64backup/L00/resources/simple_vert.glsl

13 lines
190 B
Text
Raw Permalink Normal View History

2017-02-17 17:32:44 -06:00
#version 120
attribute vec4 aPos;
attribute vec3 aNor;
uniform mat4 P;
uniform mat4 MV;
varying vec3 vNor;
void main()
{
gl_Position = P * MV * aPos;
vNor = (MV * vec4(aNor, 0.0)).xyz;
}