LogicalError / realtime-CSG-for-unity

Realtime-CSG, CSG level editor for Unity
https://realtimecsg.com
MIT License
761 stars 80 forks source link

Surfaces will be invisible #251

Closed Hisashimaru closed 5 years ago

Hisashimaru commented 6 years ago

Surfaces will be invisible, If you turn off "cast shadows" or "receive shadows" in the surfaces settings.

LogicalError commented 6 years ago

This seems to be because of deferred or forward rendering (I forgot which one). In one of those modes the whole mesh becomes invisible when you turn off "cast shadows" or "receive shadows" on a MeshRenderer ..

thevaber commented 6 years ago

I noticed the same issue, it doesn't seem to be related to using deferred/forward though. Only two combinations of Visible/Receive/Cast seem to actually generate render meshes, Visible+Receive+Cast and Visible-only (Collision flag doesn't have any effect on this); the remaining combinations only create helper meshes in the editor. I tried a couple of versions and first version where this problem appears seems to be 1.517b (which also removed some shadow related settings from CSG Model -> Rendering). With 1.516, render meshes are generated properly for all the unique combinations of the three flags.

LogicalError commented 5 years ago

Fix available in 1.533, I will close this ticket once this version is available from the asset store

LogicalError commented 5 years ago

This version is available from the asset store, closing this ticket