Clay Engine: Fix Axis Name shader

This commit is contained in:
Clément Foucault 2017-02-16 14:24:50 +01:00
parent d8df7ce6a4
commit 268670cdee
1 changed files with 1 additions and 1 deletions

View File

@ -24,6 +24,6 @@ void main()
offset = vec3(0.0, 0.0, 1.125);
vec3 screen_pos = screen_vecs[0].xyz * pos.x + screen_vecs[1].xyz * pos.y;
gl_Position = ViewProjectionMatrix * InstanceModelMatrix * vec4((screen_pos + offset) * size, 1.0);
gl_Position = ViewProjectionMatrix * (InstanceModelMatrix * vec4(offset * size, 1.0) + vec4(screen_pos * size, 0.0));
finalColor = vec4(color, 1.0);
}