Unity 2018: Procedural Wall Shader Compile Error
Posted: Thu Aug 16, 2018 12:07 am
In Unity 2018 v2.1f, importing Amplify Shader Editor or creating a new editor yields the following warning:
Shader error in 'ASESampleShaders/ProceduralWall': 'vertexDataFunc': output parameter 'v' not completely initialized at line 59 (on metal)
It's easily fixed by going into proceduralWall.shader and adding as the first line to 'vertexDataFunc':
Shader error in 'ASESampleShaders/ProceduralWall': 'vertexDataFunc': output parameter 'v' not completely initialized at line 59 (on metal)
It's easily fixed by going into proceduralWall.shader and adding as the first line to 'vertexDataFunc':
- Code: Select all
UNITY_INITIALIZE_OUTPUT(appdata_full, v);