0
Fixed

Every single shader falls back to Diffuse

Danjel Ricci 8 jaar geleden bijgewerkt door Freya Holmér (Developer) 8 jaar geleden 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).

Antwoord

Antwoord
Fixed

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.

Under review

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

Antwoord
Fixed

Fixed in SF 1.32