https://github.com/sueda/eol-cloth
Tip revision: cc8f24eef81283c541b859c05dd8ceed7813271f authored by Shinjiro Sueda on 15 October 2019, 01:48:02 UTC
Update README.md
Update README.md
Tip revision: cc8f24e
phong_vert.glsl
#version 120
attribute vec4 aPos;
attribute vec3 aNor;
attribute vec2 aTex;
uniform mat4 P;
uniform mat4 MV;
varying vec3 vPos;
varying vec3 vNor;
varying vec2 vTex;
void main()
{
vec4 posCam = MV * aPos;
gl_Position = P * posCam;
vPos = posCam.xyz;
vNor = (MV * vec4(aNor, 0.0)).xyz;
vTex = aTex;
}