Search Issue Tracker

Fixed in 2021.2.X

Votes

0

Found in

2019.4

2019.4.12f1

2020.3

2021.2

Issue ID

1401677

Regression

No

Shader error is thrown when baking the lighting with static GameObjects in the Hierarchy

Shader System

-

Reproduction steps:
1. Open the user's attached project
2. Select any GameObject in the Hierarchy and check the "Static" checkbox in the Inspector
3. Bake the Lighting (Lighting settings > Generate Lighting)

Expected result: No errors are thrown
Actual result: This error is thrown for every static GameObject:
"Maximum number (64) of shader local keywords exceeded, keyword GEOM_TYPE_FROND will be ignored.
You will have to delete some shaders or make them use less keywords.
Keywords used in project now: _SNOWMASKMAP _WIND_ON _LAYERTRIPLANAR_DEF_2 _DISSOLVE _LAYERNORMAL_DEF_1 _LAYERMASK_DEF_2 GEOM_TYPE_LEAF _NOISEWORLEY _DETAILTRIPLANAR _NOISEWORLD _LAYERTRIPLANAR _SIMPLELIT _LAYERANGLEFILTER_DEF_2 _PARALLAX _NOISETEXTURE _PUDDLENOISE _LAYERANGLEFILTER _LAYERNORMAL _SNOWSTOCHASTIC _RAINDROPS _NORMALMAP _MASKMAP _LAYERALBEDO_DEF_2 _LAYERNOISE_DEF_2 _DETAILSTOCHASTIC _LAYERANGLEFILTER_DEF_1 _NOISEHQ _LAYERTRIPLANAR_DEF_1 LOD_FADE_CROSSFADE _USELAYER_DEF_2 _LAYEREMISSION _SNOW _PACKEDFAST _EMISSION _SPECULAR _LAYERALBEDO _FLATSHADE _PUDDLES _TRIPLANAR _DEBUG_SAMPLECOUNT _LAYERSTOCHASTIC_DEF_1 _LAYERTEXTUREMASK _SNOWNOISE _NOISELOCAL _DETAIL _LAYERNOISE _LAYERSTOCHASTIC_DEF_2 _USELAYER _SURFACEGRADIENT _LAYEREMISSION_DEF_1 _TINTMASK _USELAYER_DEF_1 _LAYERNORMAL_DEF_2 _AUTONORMAL _LAYERALBEDO_DEF_1 _LAYERMASK_DEF_1 _LAYERSTOCHASTIC _TRAX_ON _LAYERVERTEXMASK _WETNESS _LAYERMASK _LAYERNOISE_DEF_1 _STOCHASTIC _LAYEREMISSION_DEF_2"

Reproducible with: 2019.4.36f1, 2020.3.32f1, 2021.2.0a15
Not reproducible with: 2021.2.0a16, 2021.2.17f1, 2022.1.0b14, 2022.2.0a10

  1. Resolution Note (fix version 2021.2):

    Fixed in: 2021.2.0a16

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.