0
Corrigé

Error when masking refraction with a depth node

robert briscoe il y a 10 ans mis à jour par JVraven il y a 8 ans 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


Solution

+1
Solution
Corrigé
This is now fixed in Beta 0.23 :)
+1
Solution
Corrigé
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?