Cubeds-Unity-Shaders icon indicating copy to clipboard operation
Cubeds-Unity-Shaders copied to clipboard

Shader Fails on Some Platforms

Open owlboy opened this issue 7 years ago • 3 comments

I have successfully used these shaders on my Mac with Unity using OpenGL 3.3 in the past.

The newest release turns magenta, and shows this single error in the console:

Shader error in 'CubedParadox/Flat Lit Toon': invalid subscript '_ShadowCoord' at line 62 (on glcore)

Compiling Vertex program with DIRECTIONAL SHADOWS_SHADOWMASK TINTED_OUTLINE Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME

The shader works as expected when uploaded to VRC. I just don't get a preview.

owlboy avatar Dec 11 '17 01:12 owlboy

If this is unavoidable, is there a fallback option for this environment? 😅 I currently won't be able to easily make preview images for VRC on this machine. If it fell back to standard that would be useful.

owlboy avatar Dec 11 '17 01:12 owlboy

Current version of the issue (I may have submitted an incomplete log last time):

Shader error in 'CubedParadox/Flat Lit Toon': invalid subscript '_ShadowCoord' at line 63 (on glcore)

Compiling Vertex program with DIRECTIONAL SHADOWS_SHADOWMASK NO_OUTLINE Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME
Shader error in 'CubedParadox/Flat Lit Toon': invalid subscript '_ShadowCoord' at line 136 (on glcore)

Compiling Vertex program with DIRECTIONAL SHADOWS_SHADOWMASK NO_OUTLINE
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME

owlboy avatar Jan 09 '18 04:01 owlboy

Same issues on my Mac running in Unity 5.6 and in 2017

UiharuKazari2008 avatar Nov 26 '18 18:11 UiharuKazari2008