cubedparadox / Cubeds-Unity-Shaders

A compilation of custom shaders for Unity3D
MIT License
318 stars 89 forks source link

Shader Fails on Some Platforms #20

Open owlboy opened 6 years ago

owlboy commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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
UiharuKazari2008 commented 5 years ago

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