12 uniform sampler2D R2_image_depth;
13 uniform sampler2D R2_image;
14 uniform
float R2_depth_coefficient;
16 layout(location = 0) out vec4 out_rgba;
23 texture (R2_image_depth, R2_uv).x;
24 float eye_z_positive =
28 texture (R2_image, R2_uv);
Types related to fog rendering.
layout(location=0) in vec3 R2_vertex_world_position
World-space position.
Viewport types and functions.
float R2_logDepthDecode(const float z, const float depth_coefficient)
Logarithmic depth functions.
The type of fog parameters.
vec3 R2_fogQuadraticInverse(const R2_fog_t fog, const vec3 surface, const float z)