diff --git a/data/shaders/utils/getLightFactor.frag b/data/shaders/utils/getLightFactor.frag index bfc325170..a906544a5 100644 --- a/data/shaders/utils/getLightFactor.frag +++ b/data/shaders/utils/getLightFactor.frag @@ -2,6 +2,13 @@ uniform sampler2D DiffuseMap; uniform sampler2D SpecularMap; uniform sampler2D SSAO; +#ifdef UBO_DISABLED +uniform mat4 ViewMatrix; +uniform mat4 ProjectionMatrix; +uniform mat4 InverseViewMatrix; +uniform mat4 InverseProjectionMatrix; +uniform vec2 screen; +#else layout (std140) uniform MatrixesData { mat4 ViewMatrix; @@ -11,6 +18,7 @@ layout (std140) uniform MatrixesData mat4 ShadowViewProjMatrixes[4]; vec2 screen; }; +#endif vec3 getLightFactor(float specMapValue) {