AnimDebugDraw rendering works again.

I had to port AnimDebugDraw shader to GLSL 4.1.
This commit is contained in:
Anthony J. Thibault 2015-08-24 17:36:21 -07:00
parent 5a73aef1f8
commit bde75e9e51
2 changed files with 9 additions and 5 deletions

View file

@ -10,8 +10,10 @@
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
varying vec4 varColor;
in vec4 _color;
out vec4 _fragColor;
void main(void) {
gl_FragColor = varColor;
_fragColor = _color;
}

View file

@ -8,17 +8,19 @@
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
<@include gpu/Inputs.slh@>
<@include gpu/Transform.slh@>
<$declareStandardTransform()$>
varying vec4 varColor;
out vec4 _color;
void main(void) {
// pass along the diffuse color
varColor = gl_Color;
_color = inColor.rgba;
TransformCamera cam = getTransformCamera();
TransformObject obj = getTransformObject();
<$transformModelToClipPos(cam, obj, gl_Vertex, gl_Position)$>
<$transformModelToClipPos(cam, obj, inPosition, gl_Position)$>
}