Use ProjectionViewMatrix in glow_object.vert
This commit is contained in:
parent
13402543ce
commit
1d2c77d86a
@ -19,6 +19,6 @@ void main(void)
|
|||||||
{
|
{
|
||||||
mat4 ModelMatrix = getWorldMatrix(Origin, Orientation, Scale);
|
mat4 ModelMatrix = getWorldMatrix(Origin, Orientation, Scale);
|
||||||
mat4 TransposeInverseModelView = transpose(getInverseWorldMatrix(Origin, Orientation, Scale) * InverseViewMatrix);
|
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;
|
glowColor = GlowColor;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user