0
Fixed

Error when masking refraction with a depth node

robert briscoe 11 years ago updated by JVraven 9 years ago 3
So I have some normal maps multiplied by a depth blend node going into the refraction slot which causes errors, it only happens when the depth node is used for refraction:
Image 134

The errors:
Shader error in 'Shader Forge/Water': Shader program had errors at line 38

Shader error in 'Shader Forge/Water': Program 'frag', unable to find compatible overloaded function "saturate(error)" at line 139
Keywords: DIRECTIONAL, LIGHTMAP_OFF, DIRLIGHTMAP_OFF, SHADOWS_OFF

Shader error in 'Shader Forge/Water': Program 'frag', undefined variable "partZ" at line 139
Keywords: DIRECTIONAL, LIGHTMAP_OFF, DIRLIGHTMAP_OFF, SHADOWS_OFF

Shader error in 'Shader Forge/Water': Program 'frag', undefined variable "sceneZ" at line 139
Keywords: DIRECTIONAL, LIGHTMAP_OFF, DIRLIGHTMAP_OFF, SHADOWS_OFF


Answer

+1
Answer
Fixed
This is now fixed in Beta 0.23 :)
+1
Answer
Fixed
This is now fixed in Beta 0.23 :)
+2
Is it possible that the scene depth node doesn't work with refraction? I got this ocean shader and this seems to be the case. The objects get refracted but there the scene depth still shows the unrefracted object.

The same problem with refraction. Is there any solution?