Render object with plain material are drawn multiple times (and appears brighter) #751
Replies: 2 comments 1 reply
-
I think that we shouldn't design any Material behavior in a way depending on a specific renderer (neither |
Beta Was this translation helpful? Give feedback.
-
I'm not sure to get what is the correct way to have an object drawn without lighting i.e. how can I simply ignore lights, and hence light pass, on the "material"/shader side ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Plain material is suppose to draw without lighting. But it has some issue with ForwardRenderer.
It's mostly used for Ui or Debug, which seems to work fine (since there is no lighting in these rendering).
But if it's a geometry component, the ro is added to the light loop, even if it has plain material.
On simple solution is make plain material only affect ambient/zprepass, but it's not used in ui/debug rendering.
Another solution is to refactor the way ForwardRenderer choose how to draw things.
Or simply wait for the "new renderer" that can fix this (hopefully?)
Beta Was this translation helpful? Give feedback.
All reactions