R2 Shaders
R2ViewRays.h
Go to the documentation of this file.
1 #ifndef R2_VIEW_RAYS_H
2 #define R2_VIEW_RAYS_H
3 
4 /// \file R2ViewRays.h
5 /// \brief View ray types
6 
7 /// The type of view rays used to reconstruct positions during deferred rendering.
8 
9 struct R2_view_rays_t {
10  /// The bottom left origin
12  /// The bottom right origin
14  /// The top left origin
16  /// The top right origin
18  /// The view ray pointing out of the bottom left origin
19  vec3 ray_x0y0;
20  /// The view ray pointing out of the bottom right origin
21  vec3 ray_x1y0;
22  /// The view ray pointing out of the top left origin
23  vec3 ray_x0y1;
24  /// The view ray pointing out of the top right origin
25  vec3 ray_x1y1;
26 };
27 
28 #endif // R2_VIEW_RAYS_H
vec3 ray_x0y1
The view ray pointing out of the top left origin.
Definition: R2ViewRays.h:23
vec3 ray_x1y1
The view ray pointing out of the top right origin.
Definition: R2ViewRays.h:25
vec3 ray_x0y0
The view ray pointing out of the bottom left origin.
Definition: R2ViewRays.h:19
vec3 origin_x1y1
The top right origin.
Definition: R2ViewRays.h:17
vec3 ray_x1y0
The view ray pointing out of the bottom right origin.
Definition: R2ViewRays.h:21
vec3 origin_x0y0
The bottom left origin.
Definition: R2ViewRays.h:11
vec3 origin_x0y1
The top left origin.
Definition: R2ViewRays.h:15
The type of view rays used to reconstruct positions during deferred rendering.
Definition: R2ViewRays.h:9
vec3 origin_x1y0
The bottom right origin.
Definition: R2ViewRays.h:13