1e66c4104a
- 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.
16 lines
345 B
GLSL
16 lines
345 B
GLSL
#version 330 core
|
|
|
|
out vec4 ap_color;
|
|
|
|
// cloud_static_common.vert
|
|
void cloud_static_common_vert(out vec4 vs_pos, out vec4 ws_pos);
|
|
// aerial_perspective_envmap.glsl
|
|
vec4 get_aerial_perspective(vec3 pos);
|
|
|
|
void main()
|
|
{
|
|
vec4 vs_pos, ws_pos;
|
|
cloud_static_common_vert(vs_pos, ws_pos);
|
|
|
|
ap_color = get_aerial_perspective(ws_pos.xyz);
|
|
}
|