17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-06 01:12:26 +01:00

Light the cab with the sun coming in through its windows

This commit is contained in:
2026-10-28 12:19:43 +01:00
parent 1447dcf075
commit e8a90507f0
28 changed files with 342 additions and 29 deletions

View File

@@ -11,7 +11,10 @@ layout(location = 3) in vec4 f_pos;
layout(binding = 0) uniform sampler2D diffuse;
// the cube shadow map of the cab lamp, see gl::LOCAL_SHADOW_TEX
layout(binding = LOCAL_SHADOW_TEX) uniform samplerCubeArrayShadow probe_shadowmap;
// the probe drawn last, where the windows of the cab are, see gl::CAB_PROBE_MASK_TEX
layout(binding = CAB_PROBE_MASK_TEX) uniform samplerCube cab_probe_mask;
#include "weather_common.glsl"
#include "cabprobe.glsl"
void main()