[SOLVED] useLightning & useSkybox doesn't works properly together when set to false in material

I’m setting both useLightning & useSkybox to false in order to make material work as if it were independent from scene lightning like sprite.
When used separately they works fine, but when i use both then useLightning = false seems to be ignored because changing ambient color in rendering settings changes how material rendered.

You’re likely hitting this, see if the workaround works for you: Skip ambient light for standard shader · Issue #866 · playcanvas/engine · GitHub

Thank you for your reply, looks like it works

1 Like