Fix "Uniform PPCompXX not found" warnings

This commit is contained in:
Moritz Brückner 2021-09-02 17:14:18 +02:00
parent 052c7b00c5
commit 44d8325001
10 changed files with 29 additions and 9 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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