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;
#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": [],