minits progress

This commit is contained in:
luboslenco
2024-04-12 12:51:40 +02:00
parent e5d106ed6a
commit 08eb42e484
15 changed files with 40 additions and 41 deletions
+3 -3
View File
@@ -40,9 +40,9 @@ function render_path_base_init_voxels(target_name: string = "voxels") {
function render_path_base_apply_config() {
if (render_path_base_super_sample != config_raw.rp_supersample) {
render_path_base_super_sample = config_raw.rp_supersample;
let values: render_target_t[] = map_to_array(render_path_render_targets);
for (let i: i32 = 0; i < values.length; ++i) {
let rt: render_target_t = values[i];
let keys: string[] = map_keys(render_path_render_targets);
for (let i: i32 = 0; i < keys.length; ++i) {
let rt: render_target_t = map_get(render_path_render_targets, keys[i]);
if (rt.width == 0 && rt.scale != null) {
rt.scale = render_path_base_super_sample;
}