From f9c7c3db5ebadba8f2c3a6bc16aaf5f096081ad2 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Wed, 30 Jul 2014 01:25:27 +0200 Subject: [PATCH] Try a fix for intel and kart selection screen. --- data/shaders/utils/getLightFactor.frag | 8 ++++++++ 1 file changed, 8 insertions(+) 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) {