From dbe64beec9e5bc2652b0c23dafaf5f1e1d44604f Mon Sep 17 00:00:00 2001 From: Xonk Date: Sun, 18 Jan 2026 00:40:55 -0500 Subject: [PATCH] fix wrong scope when using CUSTOM_SCENE_PARAMETERS.glsl --- shaders/CUSTOM_SCENE_PARAMETERS.glsl | 2 +- shaders/lib/scene_controller.glsl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/shaders/CUSTOM_SCENE_PARAMETERS.glsl b/shaders/CUSTOM_SCENE_PARAMETERS.glsl index 9809f13..07d5c8c 100644 --- a/shaders/CUSTOM_SCENE_PARAMETERS.glsl +++ b/shaders/CUSTOM_SCENE_PARAMETERS.glsl @@ -100,7 +100,7 @@ */ #ifdef DECLARE_UNIFORMS_OR_WRITE_FUNCTIONS_FOR_CUSTOM_SCENE_CONTROLLER_PROFILES -// DECLARE UNIFORMS PROVIDED BY IRIS HERE. if they are already declared elswhere in the shaderpack, there will be an error. not all uniforms are viable to be used. +// DECLARE UNIFORMS PROVIDED BY IRIS HERE. if they are already declared elsewhere in the shaderpack, there will be an error. not all uniforms are viable to be used. // read the iris documentation for a complete list of uniforms to call https://shaders.properties/current/reference/uniforms/overview/ // you can also write functions here if you want. you must follow the syntax of the programming language "GLSL" diff --git a/shaders/lib/scene_controller.glsl b/shaders/lib/scene_controller.glsl index 4d52c19..317c7a5 100644 --- a/shaders/lib/scene_controller.glsl +++ b/shaders/lib/scene_controller.glsl @@ -587,6 +587,7 @@ if(rainStrength > 0.0001){ #define WRITE_CUSTOM_SCENE_CONTROLLER_PROFILES +#undef DECLARE_UNIFORMS_OR_WRITE_FUNCTIONS_FOR_CUSTOM_SCENE_CONTROLLER_PROFILES #include "/CUSTOM_SCENE_PARAMETERS.glsl" }