Add sound queue when on chasm edge
This commit is contained in:
@@ -10,8 +10,7 @@ out vec3 gTexCoords;
|
||||
float isLHS (vec2 startV, vec2 testV)
|
||||
{ return sign( -startV.x * testV.y + startV.y * testV.x); }
|
||||
void main()
|
||||
{ gAng = vTexAng[0].y;
|
||||
float tcoordz = vTexAng[0].x;
|
||||
{ float tcoordz = vTexAng[0].x;
|
||||
vec2 p1xy = gl_in[0].gl_Position.xy;
|
||||
vec2 p2xy = gl_in[0].gl_Position.zw;
|
||||
vec4 p1 = vec4 (gl_in[0].gl_Position.xy,0,1);
|
||||
@@ -25,18 +24,22 @@ void main()
|
||||
gPos = p1;
|
||||
gl_Position = vec4(theMat * p1);
|
||||
gTexCoords = vec3 (0,0,tcoordz);
|
||||
gAng = vTexAng[0].y;
|
||||
EmitVertex();
|
||||
gPos = p3;
|
||||
gl_Position = vec4(theMat * p3);
|
||||
gTexCoords = vec3 (0,2,tcoordz);
|
||||
gAng = vTexAng[0].y;
|
||||
EmitVertex();
|
||||
gPos = p2;
|
||||
gl_Position = vec4(theMat * p2);
|
||||
gTexCoords = vec3 (tcoordx,0,tcoordz);
|
||||
gAng = vTexAng[0].y;
|
||||
EmitVertex();
|
||||
gPos = p4;
|
||||
gl_Position = vec4(theMat * p4);
|
||||
gTexCoords = vec3 (tcoordx,2,tcoordz);
|
||||
gAng = vTexAng[0].y;
|
||||
EmitVertex();
|
||||
EndPrimitive();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user