Files
engine/docs/en/graphics/camera/depthTexture.md
2024-08-02 19:07:24 +08:00

583 B

order, title, type, group, label
order title type group label
4 Camera Depth Texture Graphics Camera Graphics/Camera

The camera can enable depth texture through the depthTextureMode property. After enabling the depth texture, you can access the depth texture in the Shader through the camera_DepthTexture property. Depth texture can be used to implement soft particles, water surface edge transitions, and some simple post-processing effects.

Note: Depth texture only renders non-transparent objects.