0

I am creating a 2d game in unity and I am using hundreds of sprite game objects to represent my terrain.

However, the thing is, I only ever see 1 side of a texture during gameplay, but I am rendering both sides when using sprites.

Side that player sees:

enter image description here

Another side that renders, but player won't ever see it:

enter image description here

So my question is: Should I use quads and texture only 1 side instead?

FICHEKK
  • 749
  • 1
  • 6
  • 24
  • Back faces are culled during rendering. Don't worry about it. – Draco18s no longer trusts SE Aug 23 '18 at 15:36
  • Could you provide some documentation that says so? I would love to read about it more. – FICHEKK Aug 23 '18 at 17:34
  • Its just how the shader works with sprites and rendering. Sprites tell the system that it should be drawn regardless of its orientation, but the side "away" from the camera is never actually drawn (this happens at the OpenGL level or possibly lower, as because it faces away from the camera no time is spent drawing it). If you want it to not render the backside in the editor, you can use a custom shader (see [this question](https://stackoverflow.com/q/36205501/1663383)). – Draco18s no longer trusts SE Aug 23 '18 at 17:41

0 Answers0