0
Solucionado

Every single shader falls back to Diffuse

Danjel Ricci hace 8 años actualizado por Freya Holmér (Developer) hace 8 años 4

I just loaded Shader Forge 1.31 in Unity 5.5.0p3 Personal (running on Macbook Pro Late 2013, OSX 11.12.2) and no single shader I create is working, neither the simplest of them; they all just fall back to the standard builtin Diffuse. This is quite strange since some months ago everything was working totally fine, even the most complex shaders (though I really don't remember what version I was using).

Respuesta

Respuesta
Solucionado

Fixed in SF 1.32

For me, this appears to be due to the line


#pragma only_renderers d3d9 d3d11 opengl gles


in the generated shader. Adding glcore to the end fixed the rendering, but breaks Shader Forge, deleting the shader code and going back to the main menu as soon as I attempt to open the shader in Shader Forge.

Thanks a lot, I can confirm this works. As a temporary workaround I ma create a copy of the generated shaders and remove the SF Data line, so it won't mess up with SF plugin.

En revisión

I'll fix this asap, thanks for finding it!

Respuesta
Solucionado

Fixed in SF 1.32