0
Terminé

PBL shader goes pink as soon as metallic gets connected - viewReflectDirection not declared

msperling il y a 9 ans mis à jour par Giuseppe “Pino” De Francesco il y a 9 ans 6

undeclared identifier 'viewReflectDirection' at line 78 (on d3d11)

Try this:

Connect single floats to BaseColor, Gloss and Metallic.

As soon as you connect one to Metallic the shader fails to compile.

Solution

Solution

Ticked this one off a bit prematurely - it has definitely been fixed now in 1.23 :)

Terminé

This is fixed in the coming version

Hi Joachim,

this bug does not seem to be fixed in 1.22 but I could narrow it down to the Lighting tab. When disabling Reflection probe support I get the error above:

undeclared identifier 'viewReflectDirection' at line 106 (on d3d11)


When enabling Reflection probe Support all is well.


Shader is on PBL.

Deferred or Forward, Metallic or Specular, Gloss or Roughness doesn't seem to have any impact on the repro.

Solution

Ticked this one off a bit prematurely - it has definitely been fixed now in 1.23 :)

:) looking forward to get this then, excellent job anyway :)