Path Tracing
Loading...
Searching...
No Matches
grid.vert File Reference

Functions

vec3 unproject (float x, float y, float z)
void main ()

Variables

out vec3 nearPoint
out vec3 farPoint
vec2 positions [4]
 Covers the entire screen.
uniform mat4 view
uniform mat4 projection

Function Documentation

◆ main()

void main ( void )

◆ unproject()

vec3 unproject ( float x,
float y,
float z )

Variable Documentation

◆ farPoint

out vec3 farPoint

◆ nearPoint

out vec3 nearPoint

◆ positions

vec2 positions[4]
Initial value:
= vec2[](
vec2(-1.0, -1.0),
vec2(-1.0, 1.0),
vec2(1.0, -1.0),
vec2(1.0, 1.0)
)

Covers the entire screen.

◆ projection

uniform mat4 projection

◆ view

uniform mat4 view