mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-03-13 05:32:10 +00:00
25 lines
536 B
GLSL
25 lines
536 B
GLSL
attribute vec3 attr_Position;
|
|
attribute vec3 attr_Normal;
|
|
|
|
// Uniforms
|
|
layout(shared) uniform ViewMatrices
|
|
{
|
|
uniform highp mat4 u_ViewMatrices[NUM_VIEWS];
|
|
};
|
|
layout(shared) uniform ProjectionMatrix
|
|
{
|
|
uniform highp mat4 u_ProjectionMatrix;
|
|
};
|
|
uniform highp mat4 u_ModelMatrix;
|
|
|
|
varying vec3 var_Position;
|
|
varying vec3 var_Normal;
|
|
|
|
|
|
void main()
|
|
{
|
|
gl_Position = u_ProjectionMatrix * (u_ViewMatrices[gl_ViewID_OVR] * (u_ModelMatrix * vec4(attr_Position, 1.0)));
|
|
|
|
var_Position = attr_Position;
|
|
var_Normal = attr_Normal;
|
|
}
|