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/A4/resources/.vert.glsl

18 lines
301 B
Text
Raw Normal View History

2017-04-10 17:45:21 -05:00
#version 120
uniform mat4 P;
uniform mat4 MV;
attribute vec4 aPos; // in object space
attribute vec3 aNor; // in object space
varying vec3 p; // passed to fragment shader
varying vec3 n; // passed to fragment shader
void main()
{
ugl_Position = P * MV * aPos;
p = MV * aPos;
n = MV * aNor;
}