17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-04 11:19:30 +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

@@ -67,7 +67,8 @@
#define CAB_PROBE_SSBO 30
#define SKY_OCCLUSION_HEIGHT_TEX 31
#define SKY_OCCLUSION_TEX 32
#define PASS_BINDING_COUNT 33
#define CAB_PROBE_MASK_TEX 33
#define PASS_BINDING_COUNT 34
#define MATERIAL_TEXTURE_FIRST 0
#define CL_CLUSTER_UBO 0
#define CL_AABB_SSBO 1
@@ -302,6 +303,11 @@ layout(std140, set = PASS_SET, binding = SCENE_UBO) uniform scene_ubo
vec4 sky_occlusion_origin;
vec4 sky_occlusion_params;
vec4 sky_occlusion_center;
// the sun coming in through the windows of the cab, for the drawing of its probe, see gl::scene_ubs
vec4 cab_probe_sun;
vec4 cab_probe_sun_color;
vec4 cab_probe_sun_box;
vec4 cab_probe_sun_world;
};
#ifndef LAYOUT_COMPUTE
@@ -319,7 +325,7 @@ struct model_draw_s
float fog_density;
float alpha_mult;
float shadow_tone;
// 1 for the parts of the occupied cab, see gl::model_ubs
// 1 for the parts of the occupied cab, 2 for the low poly interiors, see gl::model_ubs
float cab_interior;
};