PBR Shader error: invalid subscript 'ndotl' with 1.4.6 & Unity Beta 5.5.0b4

0
timoxley posted this 24 September 2016

The PicaVoxel PBR shaders appear to be broken in the latest Unity beta. Not upset, this is probably because I am using the Unity beta. The non-PBR PicaVoxel shaders appear to be functional.

Please let me know if there's a quick workaround, otherwise I will be patient and wait for a new release.

Using

  • PicaVoxel 1.4.6.
  • Latest public Unity beta 5.5.0b4.
  • Imported .vox from MagicaVoxel 0.97.
  • WebGL build target.
  • macOS Sierra 10.12 (16A323).

Visual Symptoms

shader error visual symptoms

Errors

Shader error in 'PicaVoxel/PicaVoxel PBR OneMinus Alpha Emissive': invalid subscript 'ndotl' at line 115 (on glcore)

Compiling Vertex program with DIRECTIONAL LIGHTMAP_OFF DIRLIGHTMAP_OFF DYNAMICLIGHTMAP_OFF
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA

Shader error in 'PicaVoxel/PicaVoxel PBR Mosaic': invalid subscript 'ndotl' at line 126 (on glcore)

Compiling Vertex program with DIRECTIONAL LIGHTMAP_OFF DIRLIGHTMAP_OFF DYNAMICLIGHTMAP_OFF
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA

Shader error in 'PicaVoxel/PicaVoxel PBR Transparent': invalid subscript 'ndotl' at line 114 (on glcore)

Compiling Vertex program with DIRECTIONAL LIGHTMAP_OFF DIRLIGHTMAP_OFF DYNAMICLIGHTMAP_OFF
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA

Shader error in 'PicaVoxel/PicaVoxel PBR': invalid subscript 'ndotl' at line 113 (on glcore)

Compiling Vertex program with DIRECTIONAL LIGHTMAP_OFF DIRLIGHTMAP_OFF DYNAMICLIGHTMAP_OFF
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA

Warnings

Lighting data asset 'LightmapSnapshot' was built with a different version of Enlighten. Realtime GI will not be used. Please rebuild lighting for this scene.

Lighting data asset 'LightmapSnapshot' was built with a different version of Enlighten. Realtime GI will not be used. Please rebuild lighting for this scene.
UnityEditorInternal.InternalEditorUtility:GetGameObjectInstanceIDFromComponent(Int32)
UnityEditor.DockArea:OnGUI()

Last edited 24 September 2016

1 Comments
Order By: Standard | Newest | Votes
1
GarethIW posted this 24 September 2016

Just got the beta set up on my beta VM and it does indeed look like Unity have changed the game again with some of the shader operations.

Unfortunately I can't do anything to fix this as yet; I rely on ShaderForge to create the PBR shaders and the latest ShaderForge version refuses to even start in 5.5b.

On the upside, Joachim is usually very on the ball and I'm sure that there will be an updated ShaderForge way before 5.5 comes out of beta. Until then I'm afraid it's either drop back to 5.4 or continue using the Diffuse shaders.


Our 125 members have posted 459 times in 111 discussions