mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
305 B
Plaintext
21 lines
305 B
Plaintext
3 years ago
|
#version 120
|
||
|
|
||
|
#include "openmw_vertex.h.glsl"
|
||
|
|
||
|
uniform mat4 projectionMatrix;
|
||
|
|
||
|
vec4 mw_modelToClip(vec4 pos)
|
||
|
{
|
||
|
return projectionMatrix * mw_modelToView(pos);
|
||
|
}
|
||
|
|
||
|
vec4 mw_modelToView(vec4 pos)
|
||
|
{
|
||
|
return gl_ModelViewMatrix * pos;
|
||
|
}
|
||
|
|
||
|
vec4 mw_viewToClip(vec4 pos)
|
||
|
{
|
||
|
return projectionMatrix * pos;
|
||
|
}
|