From 64c6fb54a4be02e446e749c1ff3dcc9f22a3014e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Wed, 20 Mar 2024 21:48:52 +0100 Subject: [PATCH] drop flag check --- engine/joint/v4k.h | 2 +- engine/split/v4k_render.c | 2 +- engine/v4k.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index 4c6341d..d08feca 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -371715,7 +371715,7 @@ skybox_t skybox_pbr(const char *sky_map, const char *refl_map, const char *env_m // sky program sky.flags = SKYBOX_PBR; sky.program = shader(vfs_read("shaders/vs_3_3_skybox.glsl"), - sky.flags ? vfs_read("fs_3_4_skybox.glsl") : vfs_read("shaders/fs_3_4_skybox_rayleigh.glsl"), + vfs_read("fs_3_4_skybox.glsl"), "att_position", "fragcolor", NULL); // sky cubemap & SH diff --git a/engine/split/v4k_render.c b/engine/split/v4k_render.c index 82377c0..70bd8f0 100644 --- a/engine/split/v4k_render.c +++ b/engine/split/v4k_render.c @@ -1688,7 +1688,7 @@ skybox_t skybox_pbr(const char *sky_map, const char *refl_map, const char *env_m // sky program sky.flags = SKYBOX_PBR; sky.program = shader(vfs_read("shaders/vs_3_3_skybox.glsl"), - sky.flags ? vfs_read("fs_3_4_skybox.glsl") : vfs_read("shaders/fs_3_4_skybox_rayleigh.glsl"), + vfs_read("fs_3_4_skybox.glsl"), "att_position", "fragcolor", NULL); // sky cubemap & SH diff --git a/engine/v4k.c b/engine/v4k.c index 413c080..d0f263f 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -18862,7 +18862,7 @@ skybox_t skybox_pbr(const char *sky_map, const char *refl_map, const char *env_m // sky program sky.flags = SKYBOX_PBR; sky.program = shader(vfs_read("shaders/vs_3_3_skybox.glsl"), - sky.flags ? vfs_read("fs_3_4_skybox.glsl") : vfs_read("shaders/fs_3_4_skybox_rayleigh.glsl"), + vfs_read("fs_3_4_skybox.glsl"), "att_position", "fragcolor", NULL); // sky cubemap & SH