packages: ludic.ui's render3d backend threads Render3dState; render3d's settable vars (r3d_dem_path, post_*, grass_*, wt_wade_*, ...) are Render3dState's fields again, not lets
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ce80e64b24
commit
3a87d02696
15 changed files with 152 additions and 148 deletions
|
|
@ -797,6 +797,59 @@ export state Render3dState {
|
|||
wb_refl_always: int = -1
|
||||
wb_dbg: int = -1
|
||||
wb_build_us: long = 0 # how long the last water_cells_build took (R3D_REFL_DBG prints it)
|
||||
grass_blade_tex: int = 0
|
||||
grass_blade_cols: int = 8
|
||||
grass_push_x: float = 0.0
|
||||
grass_push_z: float = 0.0
|
||||
grass_push_r: float = 0.0
|
||||
post_auto: bool = true
|
||||
post_contact: float = 1.25 # 1.25: how hard a thing is darkened where it meets the ground
|
||||
post_vol_steps: float = 24.0 # 24
|
||||
post_vol_far: float = 800.0 # 800 m
|
||||
post_vol_g: float = 0.6 # 0.6: air throws light forward
|
||||
post_vol_mist_h: float = 40.0 # 40 m
|
||||
post_fxaa: float = 1.0
|
||||
post_dof_focus: float = 10.0 # 10 m
|
||||
post_dof_aperture: float = 0.0 # 0 = no lens, and no pass
|
||||
post_dof_max: float = 12.0 # 12 px
|
||||
r3d_global_defs: string = ""
|
||||
r3d_fog_scale: float = 1.0 # float bits: a setting's multiplier over the density the day sets
|
||||
r3d_fog_base: float = 0.0 # the height fog is measured from (float bits); 0 = y = 0
|
||||
r3d_ground_alb_r: float = 0.3
|
||||
r3d_ground_alb_g: float = 0.34
|
||||
r3d_ground_alb_b: float = 0.14
|
||||
r3d_ground_hi_r: float = 0.289
|
||||
r3d_ground_hi_g: float = 0.28
|
||||
r3d_ground_hi_b: float = 0.26
|
||||
r3d_ground_hi_y: float = 480.0 # 480
|
||||
r3d_ground_hi_w: float = 150.0 # 150
|
||||
r3d_dem_path: string = null
|
||||
r3d_dem_min: float = 0.0
|
||||
r3d_dem_max: float = 0.0
|
||||
r3d_dem_base: float = 0.0
|
||||
r3d_dem_ox: float = 0.0
|
||||
r3d_dem_oz: float = 0.0
|
||||
r3d_ortho_path: string = null
|
||||
r3d_debug_max: bool = false
|
||||
r3d_cloud_shadow: float = 0.5 # 0.5
|
||||
sc_a2c: bool = true
|
||||
sc_bake_flower: bool = false
|
||||
sc_dbg_blade: int = 0
|
||||
sc_skip_flower: bool = false
|
||||
sh_enabled: bool = true
|
||||
sh_skip_terrain: bool = false
|
||||
sh_probe_x: float = 0.0
|
||||
sh_probe_y: float = 0.0
|
||||
sh_probe_z: float = 0.0
|
||||
sky_sun_boost: float = 2.3 # 2.3: the photograph's thin cloud dims its sun; a crisper day wants more
|
||||
sky_start_yaw: float = 0.0
|
||||
STREAM_BUDGET_US: int = 2500 # microseconds of generation per frame; a setting may move it
|
||||
stream_budget_left: int = 0
|
||||
ter_wet: float = 0.0
|
||||
ter_dem_blur: float = 0.0 # gaussian texels applied to the survey (0 for lidar; ~3 for 30 m data)
|
||||
wt_wade_x: float = 0.0
|
||||
wt_wade_z: float = 0.0
|
||||
wt_wade_s: float = 0.0
|
||||
}
|
||||
function r3d_dev(render3d_st: mut Render3dState) -> bool {
|
||||
if render3d_st.r3d_dev_v < 0 { if Os.has_env("R3D_DEV") and Os.env("R3D_DEV") != "0" { render3d_st.r3d_dev_v = 1 } else { render3d_st.r3d_dev_v = 0 } }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue