cubedparadox / Cubeds-Unity-Shaders

A compilation of custom shaders for Unity3D
MIT License
318 stars 89 forks source link

Double-sided mesh support #23

Closed jaxry closed 6 years ago

jaxry commented 6 years ago

The Flat Lit Toon shader currently backface culls polygons. Culling is required to create the outline effect, but this means that the shader doesn't render inside faces for double-sided meshes (e.g. hair or skirts). If the user chooses to use no outlines, would it be helpful to expose to the Material Inspector a parameter which controls culling? Is such a thing even possible?

TCL987 commented 6 years ago

You can replicate the behavior of having back face culling disabled by enabling tinted outlines, setting the width to 0, and the tint colour to white.

On Dec 12, 2017 1:45 AM, "Lucas Crane" notifications@github.com wrote:

The Flat Lit Toon shader currently backface culls polygons. Culling is required to create the outline effect, but this means that the shader doesn't render inside faces for double-sided meshes (e.g. hair or skirts). If the user chooses to use no outlines, would it be helpful to expose to the Material Inspector a parameter which controls culling? Is such a thing even possible?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cubedparadox/Cubeds-Unity-Shaders/issues/23, or mute the thread https://github.com/notifications/unsubscribe-auth/ADk_oOFDYYwTC3amuBIidhaXLY2gotkDks5s_ktJgaJpZM4Q-rpV .