Closed Sway007 closed 4 months ago
Fix compiling to GLSL error when #define macro exist in #ifdef macro body, like the snippet below
#define
#ifdef
...... #ifdef xxx mediump sampler2DShadow scene_ShadowMap; #define SAMPLE_TEXTURE2D_SHADOW(textureName, coord3) textureLod(textureName, coord3 , 0.0) #define TEXTURE2D_SHADOW_PARAM(shadowMap) mediump sampler2DShadow shadowMap #endif float sampleShadowMapFiltered4(TEXTURE2D_SHADOW_PARAM(shadowMap), vec3 shadowCoord, vec4 shadowMapSize) { ......
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Fix compiling to GLSL error when
#define
macro exist in#ifdef
macro body, like the snippet below