0
Исправлен

Error when masking refraction with a depth node

robert briscoe 10 лет назад обновлен JVraven 8 лет назад 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


Ответ

+1
Ответ
Исправлен
This is now fixed in Beta 0.23 :)
+1
Ответ
Исправлен
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?

Сервис поддержки клиентов работает на платформе UserEcho