R2 Shaders
|
Basic pseudo-reflective (environment mapped) deferred surface implementation. More...
#include "R2SurfaceShaderMain.h"
#include "R2EnvironmentReflection.h"
#include "R2SurfaceBasicTypes.h"
Go to the source code of this file.
Data Structures | |
struct | R2_surface_reflective_textures_t |
Textures for reflections. More... | |
struct | R2_surface_reflective_parameters_t |
Parameters for reflections. More... | |
Functions | |
R2_surface_output_t | R2_deferredSurfaceMain (const R2_vertex_data_t data, const R2_surface_derived_t derived, const R2_surface_textures_t textures, const R2_view_t view, const R2_surface_matrices_instance_t matrices_instance) |
Variables | |
uniform R2_basic_surface_textures_t | R2_basic_surface_textures |
uniform R2_basic_surface_parameters_t | R2_basic_surface_parameters |
uniform R2_surface_reflective_textures_t | R2_surface_reflective_textures |
uniform R2_surface_reflective_parameters_t | R2_surface_reflective_parameters |
Basic pseudo-reflective (environment mapped) deferred surface implementation.
Definition in file R2SurfaceBasicReflective.h.
R2_surface_output_t R2_deferredSurfaceMain | ( | const R2_vertex_data_t | data, |
const R2_surface_derived_t | derived, | ||
const R2_surface_textures_t | textures, | ||
const R2_view_t | view, | ||
const R2_surface_matrices_instance_t | matrices_instance | ||
) |
Calculate surface values for the current surface. Implementations of this function are expected to calculate a description of the current surface. The description is encoded into the G-buffer by the caller.
data | Surface data (typically coming from a vertex) |
derived | Surface data calculated from the original vertex |
textures | Textures that are required by all surfaces |
view | Matrices and parameters related to the current view |
matrices_instance | Matrices related to the instance to which this surface belongs |
Definition at line 34 of file R2SurfaceBasicReflective.h.