1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00
OpenMW/files/shaders/lib/core/vertex.glsl

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
295 B
Plaintext
Raw Normal View History

2023-02-25 11:03:39 -08:00
#version 120
#include "lib/core/vertex.h.glsl"
uniform mat4 projectionMatrix;
vec4 modelToClip(vec4 pos)
{
return projectionMatrix * modelToView(pos);
}
vec4 modelToView(vec4 pos)
{
return gl_ModelViewMatrix * pos;
}
vec4 viewToClip(vec4 pos)
{
return projectionMatrix * pos;
}