Use ProjectionViewMatrix in glow_object.vert

This commit is contained in:
Vincent Lejeune 2014-09-17 02:12:28 +02:00
parent 13402543ce
commit 1d2c77d86a

View File

@ -19,6 +19,6 @@ void main(void)
{
mat4 ModelMatrix = getWorldMatrix(Origin, Orientation, Scale);
mat4 TransposeInverseModelView = transpose(getInverseWorldMatrix(Origin, Orientation, Scale) * InverseViewMatrix);
gl_Position = ProjectionMatrix * ViewMatrix * ModelMatrix * vec4(Position, 1.);
gl_Position = ProjectionViewMatrix * ModelMatrix * vec4(Position, 1.);
glowColor = GlowColor;
}