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);
30 out_rgba = vec4(
R2_fogQuadratic(R2_fog, surface.xyz, eye_z_positive), surface.w);
vec3 R2_fogQuadratic(const R2_fog_t fog, const vec3 surface, const float z)
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.