# Shadows for transparent textures

**URL:** https://forum.castle-engine.io/t/shadows-for-transparent-textures/1020
**Category:** 3D
**Created:** [December 9, 2023, 3:13pm UTC](https://forum.castle-engine.io/t/shadows-for-transparent-textures/1020 "2023-12-09T15:13:13Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![MBa](https://forum.castle-engine.io/letter_avatar_proxy/v4/letter/m/4491bb/32.png) [@MBa](https://forum.castle-engine.io/u/MBa)
#### Post date: [December 21, 2023, 7:20pm UTC](https://forum.castle-engine.io/t/shadows-for-transparent-textures/1020/2 "2023-12-21T19:20:34Z")

</div>

A second question in this context would be: when I create a cube in a scene, the back cubes are actually hidden. However, when I use a PNG texture that has transparent areas (for the grass), grass behind it is sometimes drawn in front of the foreground grass. Do I need to enable different depth checks compared to the cube, just because I’m using transparent textures?

---

_[View the full topic](https://forum.castle-engine.io/t/shadows-for-transparent-textures/1020)._
