orels1 / orels-Unity-Shaders

A collection of practical Unity shaders for your next project
https://shaders.orels.sh
Other
178 stars 15 forks source link

Texture based keywords example incorrect #84

Closed camplowell closed 1 week ago

camplowell commented 1 week ago

Documentation page link

The example in the documentation does not match the use of the feature. Specifically, _BumpMap("Normal Map %SetKeyword(NORMALMAP_ON)", 2D) = "white" {} will result in the following error in the Unity console: Material 'UnlitSuper' with Shader 'Orel/UnlitSuper' doesn't have a texture property ''

The actual use based on my reading of the code is: _BumpMap("Normal Map %SetKeyword(_BumpMap, NORMALMAP_ON)", 2D) = "bump" {}