https://github.com/sueda/eol-cloth
Revision 09335f460c9908790628c216a26700fda3188671 authored by Nick Weidner on 05 September 2018, 20:54:38 UTC, committed by Nick Weidner on 05 September 2018, 20:54:38 UTC
1 parent ebf97b9
Tip revision: 09335f460c9908790628c216a26700fda3188671 authored by Nick Weidner on 05 September 2018, 20:54:38 UTC
Fixed some forces and boundary problems
Fixed some forces and boundary problems
Tip revision: 09335f4
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;
}

Computing file changes ...