Merge pull request #2315 from MoritzBrueckner/fix-ppcomp-warnings

Fix "Uniform PPCompXX not found" warnings
This commit is contained in:
Lubos Lenco 2021-09-02 20:05:11 +02:00 committed by GitHub
commit e0cbf1b332
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 33 additions and 13 deletions

View file

@ -4,7 +4,9 @@
uniform sampler2D tex;
#ifdef _CPostprocess
uniform vec3 PPComp10;
#endif
in vec2 texCoord;
out vec4 fragColor;

View file

@ -8,7 +8,8 @@
"links": [
{
"name": "PPComp10",
"link": "_PPComp10"
"link": "_PPComp10",
"ifdef": ["_CPostprocess"]
}
],
"texture_params": [],

View file

@ -7,7 +7,9 @@ uniform sampler2D tex;
uniform vec2 dir;
uniform vec2 screenSize;
#ifdef _CPostprocess
uniform vec3 PPComp11;
#endif
in vec2 texCoord;
out vec4 fragColor;

View file

@ -16,7 +16,8 @@
},
{
"name": "PPComp11",
"link": "_PPComp11"
"link": "_PPComp11",
"ifdef": ["_CPostprocess"]
}
],
"texture_params": [],
@ -39,7 +40,8 @@
},
{
"name": "PPComp11",
"link": "_PPComp11"
"link": "_PPComp11",
"ifdef": ["_CPostprocess"]
}
],
"texture_params": [],
@ -65,7 +67,8 @@
},
{
"name": "PPComp11",
"link": "_PPComp11"
"link": "_PPComp11",
"ifdef": ["_CPostprocess"]
}
],
"texture_params": [],

View file

@ -3,7 +3,10 @@
#include "compiled.inc"
uniform sampler2D tex;
#ifdef _CPostprocess
uniform vec3 PPComp13;
#endif
in vec2 texCoord;
out vec4 fragColor;

View file

@ -9,7 +9,8 @@
"links": [
{
"name": "PPComp13",
"link": "_PPComp13"
"link": "_PPComp13",
"ifdef": ["_CPostprocess"]
}
],
"texture_params": [],

View file

@ -12,8 +12,10 @@ uniform vec3 eyeLook;
uniform vec2 screenSize;
uniform mat4 invVP;
#ifdef _CPostprocess
uniform vec3 PPComp11;
uniform vec3 PPComp12;
#endif
in vec2 texCoord;
in vec3 viewRay;

View file

@ -28,11 +28,13 @@
},
{
"name": "PPComp11",
"link": "_PPComp11"
"link": "_PPComp11",
"ifdef": ["_CPostprocess"]
},
{
"name": "PPComp12",
"link": "_PPComp12"
"link": "_PPComp12",
"ifdef": ["_CPostprocess"]
}
],
"texture_params": [],

View file

@ -12,8 +12,10 @@ uniform mat4 P;
uniform mat3 V3;
uniform vec2 cameraProj;
#ifdef _CPostprocess
uniform vec3 PPComp9;
uniform vec3 PPComp10;
#endif
in vec3 viewRay;
in vec2 texCoord;

View file

@ -24,11 +24,13 @@
},
{
"name": "PPComp9",
"link": "_PPComp9"
"link": "_PPComp9",
"ifdef": ["_CPostprocess"]
},
{
"name": "PPComp10",
"link": "_PPComp10"
"link": "_PPComp10",
"ifdef": ["_CPostprocess"]
}
],
"texture_params": [],