R2 Core 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
11 vec3 origin_x0y0;
12 /// The bottom right origin
13 vec3 origin_x1y0;
14 /// The top left origin
15 vec3 origin_x0y1;
16 /// The top right origin
17 vec3 origin_x1y1;
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
R2_view_rays_t::ray_x0y1
vec3 ray_x0y1
The view ray pointing out of the top left origin.
Definition: R2ViewRays.h:23
R2_view_rays_t::ray_x1y1
vec3 ray_x1y1
The view ray pointing out of the top right origin.
Definition: R2ViewRays.h:25
R2_view_rays_t::ray_x0y0
vec3 ray_x0y0
The view ray pointing out of the bottom left origin.
Definition: R2ViewRays.h:19
R2_view_rays_t::origin_x1y1
vec3 origin_x1y1
The top right origin.
Definition: R2ViewRays.h:17
R2_view_rays_t::ray_x1y0
vec3 ray_x1y0
The view ray pointing out of the bottom right origin.
Definition: R2ViewRays.h:21
R2_view_rays_t::origin_x0y0
vec3 origin_x0y0
The bottom left origin.
Definition: R2ViewRays.h:11
R2_view_rays_t::origin_x0y1
vec3 origin_x0y1
The top left origin.
Definition: R2ViewRays.h:15
R2_view_rays_t
The type of view rays used to reconstruct positions during deferred rendering.
Definition: R2ViewRays.h:9
R2_view_rays_t::origin_x1y0
vec3 origin_x1y0
The bottom right origin.
Definition: R2ViewRays.h:13