Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
StandardBackfaces.shader in Android has error
#1
StandardBackfaces.shader in Android hasĀ error

invalid subscript '_LightCoord'
Compiling Vertex program with UNITY_PASS_FORWARDADD SPOT
Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 SHADER_API_MOBILE UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_LIGHTMAP_DLDR_ENCODING


Error during compilation:
Shader error in 'Standard (Backfaces)': invalid subscript '_LightCoord' at Assets/Obi/Resources/ObiMaterials/UnityStandardCoreBackfaces.cginc(416) (on gles)
Compiling Vertex program with UNITY_PASS_FORWARDADD SPOT
Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 SHADER_API_MOBILE UNITY_HARDWARE_TIER2 UNITY_COLORSPACE_GAMMA UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_LIGHTMAP_DLDR_ENCODING
Reply
#2
(24-12-2019, 03:07 PM)hitpp Wrote: StandardBackfaces.shader in Android hasĀ error

invalid subscript '_LightCoord'
Compiling Vertex program with UNITY_PASS_FORWARDADD SPOT
Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 SHADER_API_MOBILE UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_LIGHTMAP_DLDR_ENCODING


Error during compilation:
Shader error in 'Standard (Backfaces)': invalid subscript '_LightCoord' at Assets/Obi/Resources/ObiMaterials/UnityStandardCoreBackfaces.cginc(416) (on gles)
Compiling Vertex program with UNITY_PASS_FORWARDADD SPOT
Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 SHADER_API_MOBILE UNITY_HARDWARE_TIER2 UNITY_COLORSPACE_GAMMA UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_LIGHTMAP_DLDR_ENCODING

Hi there,

This shader is basically a copy of Unity's Standard shader with a negated normal, should compile if the Unity version you're using is supported by your Obi version.

If you're not using the sample backfaces shader in your project, you can safely remove it.
Reply