1
0
Fork 0
fgdata/Shaders/HDR/3dcloud.frag
Fernando García Liñán 1e66c4104a HDR: Improved environment mapping
- Terrain and clouds and now rendered on the envmap, with correct aerial
  perspective.
- Each face is rendered on a separate frame to help with performance.
- All faces are updated every 1.5 minutes. This can be changed through a
  property.
2023-05-03 02:03:10 +02:00

19 lines
405 B
GLSL

#version 330 core
layout(location = 0) out vec4 fragColor;
// 3dcloud_common.frag
vec4 cloud_common_frag();
// exposure.glsl
vec3 apply_exposure(vec3 color);
void main()
{
vec4 color = cloud_common_frag();
// Only pre-expose when not rendering to the environment map.
// We want the non-exposed radiance values for IBL.
color.rgb = apply_exposure(color.rgb);
fragColor = color;
}