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/L08/resources/.vert.glsl
2017-02-28 17:06:15 -06:00

17 lines
301 B
GLSL

#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;
}