This commit is contained in:
Flima Desktop 2025-12-04 08:01:54 +00:00
parent d3d2437fa2
commit 1bc4559b49
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ use rapier3d::prelude::*;
use strum::IntoEnumIterator;
mod ui;
const DEPTH_MAP_SIZE: u32 = 2048;
const DEPTH_MAP_SIZE: u32 = 512;
const LIGHT_PROJECTION_SIZE: f32 = 40.0;
const LIGHT_NEAR: f32 = 50.0;

View File

@ -20,8 +20,8 @@ impl MaterialUi {
Self {
render_normals_bool: false,
render_shadows_bool: true,
shadow_step_count: 1,
shadow_step_size: 1,
shadow_step_count: 3,
shadow_step_size: 2,
shadow_min_bias: 5.0,
shadow_fac_bias: 1.0,
shadow_max_bias: 100.0,

View File

@ -69,7 +69,7 @@ void main() {
app_color = normalize(abs(v_normal));
}
else {
app_color = normalize(color);
app_color = color / 256;
}
if (render_shadows_bool == 1) {