Merge pull request #91566 from basicer/light-vertex-used
Fix shader error on mobile when using `LIGHT_VERTEX`
This commit is contained in:
commit
275cdb87d2
@ -587,7 +587,7 @@ void SceneShaderForwardMobile::init(const String p_defines) {
|
|||||||
actions.usage_defines["COLOR"] = "#define COLOR_USED\n";
|
actions.usage_defines["COLOR"] = "#define COLOR_USED\n";
|
||||||
actions.usage_defines["INSTANCE_CUSTOM"] = "#define ENABLE_INSTANCE_CUSTOM\n";
|
actions.usage_defines["INSTANCE_CUSTOM"] = "#define ENABLE_INSTANCE_CUSTOM\n";
|
||||||
actions.usage_defines["POSITION"] = "#define OVERRIDE_POSITION\n";
|
actions.usage_defines["POSITION"] = "#define OVERRIDE_POSITION\n";
|
||||||
actions.usage_defines["LIGHT_VERTEX"] = "#define LIGHT_VERTEX\n";
|
actions.usage_defines["LIGHT_VERTEX"] = "#define LIGHT_VERTEX_USED\n";
|
||||||
|
|
||||||
actions.usage_defines["ALPHA_SCISSOR_THRESHOLD"] = "#define ALPHA_SCISSOR_USED\n";
|
actions.usage_defines["ALPHA_SCISSOR_THRESHOLD"] = "#define ALPHA_SCISSOR_USED\n";
|
||||||
actions.usage_defines["ALPHA_HASH_SCALE"] = "#define ALPHA_HASH_USED\n";
|
actions.usage_defines["ALPHA_HASH_SCALE"] = "#define ALPHA_HASH_USED\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user