Try a fix for intel and kart selection screen.
This commit is contained in:
parent
f1c29ad26f
commit
f9c7c3db5e
@ -2,6 +2,13 @@ uniform sampler2D DiffuseMap;
|
|||||||
uniform sampler2D SpecularMap;
|
uniform sampler2D SpecularMap;
|
||||||
uniform sampler2D SSAO;
|
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
|
layout (std140) uniform MatrixesData
|
||||||
{
|
{
|
||||||
mat4 ViewMatrix;
|
mat4 ViewMatrix;
|
||||||
@ -11,6 +18,7 @@ layout (std140) uniform MatrixesData
|
|||||||
mat4 ShadowViewProjMatrixes[4];
|
mat4 ShadowViewProjMatrixes[4];
|
||||||
vec2 screen;
|
vec2 screen;
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
vec3 getLightFactor(float specMapValue)
|
vec3 getLightFactor(float specMapValue)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user