R2 Core Shaders

R2View.h
Go to the documentation of this file.
1 #ifndef R2_VIEW_H
2 #define R2_VIEW_H
3
4 /// \file R2View.h
5 /// \brief Types relating to the view
6
7 /// Matrices and parameters related to the view that all surface shaders will receive.
8
9 struct R2_view_t {
10 /// The scene's logarithmic depth coefficient
11 float depth_coefficient;
12 /// World-space to Eye-space matrix
13 mat4x4 transform_view;
14 /// Eye-space to Clip-space matrix
15 mat4x4 transform_projection;
16 };
17
18 #endif // R2_VIEW_H
R2_view_t::transform_projection
mat4x4 transform_projection
Eye-space to Clip-space matrix.
Definition: R2View.h:15
R2_view_t::depth_coefficient
float depth_coefficient
The scene&#39;s logarithmic depth coefficient.
Definition: R2View.h:11
R2_view_t
Matrices and parameters related to the view that all surface shaders will receive.
Definition: R2View.h:9
R2_view_t::transform_view
mat4x4 transform_view
World-space to Eye-space matrix.
Definition: R2View.h:13