One sided sprites (SOLVED)

It would be useful to have a version of sprites which when rotated around don’t draw when back face culling is on. A checkbox on the sprite component.

1 Like

Isn’t it more common to turn on backface culling?

1 Like

For some reason I thought the meshes sprites were using were double sided, but render scripts just typically disable culling when drawing them.

    render.enable_state(render.STATE_CULL_FACE)
    render.set_cull_face(render.FACE_FRONT)
    render.draw(self.tile_pred)

Does work to not draw flipped sprites!

Okay, opposite request - double sided sprite meshes as an option as that would still be useful in some situations. Though low priority… :smiley:

2 Likes

Well, you can do it yourself in that case. Just add a second sprite with a negative scale x and they’ll get batched.

4 Likes