Render both sides of cloth?

So I have made a cloth with a simple plane. Everything works properly, except when the player collides with the cloth and the player can see the back of the cloth, nothing is rendered.
How do I fix this?

I tried using a cube for the cloth but the cube only had 4 restraints on it, which was not near enough.

And I am using Unity’s default plane btw.

I have no experience with cloth, but I guess that you should either use a double-sided shader for the cloth material, or duplicate the cloth’s mesh and flip its normals (so you get double sided geometry).

Unity doesn’t come with a proper double-sided variant of the standard shader, but you may try “Nature/Tree Soft Occlusion Leaves” for a quick fix.

You could download the shader source files and manually hack your way in. Backface culling is doing the magic.
Writing “Cull Off” in a shader renders both sides of an object. See this page: Unity - Manual: ShaderLab: commands
Also see this thread: Backface culling in Unity - Unity Engine - Unity Discussions

The problem for that is that you have to re-write the entire shader interface if you just want to set “Cull Off” in the standard shader while conserving the original options exposed (Rendering Mode, Albedo, Metallic, etc.). It’s not trivial at all.

1 Like

I will just try to make a double sided mesh. I do not need it so bad that I am going to learn how to create shaders just for that lol. I do want to learn how to write shaders, but not right now.

But last time I tried to make a double sided mesh, I had really weird results lol.