mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-11-29 15:12:07 +00:00
866aa787cf
Update to ioquake3 revision 3306 from 1951 of the ioq3 Github repo via subversion. Over 4 years of changes.
18 lines
469 B
GLSL
18 lines
469 B
GLSL
attribute vec4 attr_Position;
|
|
attribute vec4 attr_TexCoord0;
|
|
|
|
uniform vec3 u_ViewForward;
|
|
uniform vec3 u_ViewLeft;
|
|
uniform vec3 u_ViewUp;
|
|
uniform vec4 u_ViewInfo; // zfar / znear
|
|
|
|
varying vec2 var_DepthTex;
|
|
varying vec3 var_ViewDir;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = attr_Position;
|
|
vec2 screenCoords = gl_Position.xy / gl_Position.w;
|
|
var_DepthTex = attr_TexCoord0.xy;
|
|
var_ViewDir = u_ViewForward + u_ViewLeft * -screenCoords.x + u_ViewUp * screenCoords.y;
|
|
}
|