Files
engine/docs/en/graphics/camera/texture.md
2024-08-05 17:03:33 +08:00

953 B

order, title, type, group, label
order title type group label
4 Camera Textures Graphics Camera Graphics/Camera

Depth Texture

The camera can enable the depth texture through the depthTextureMode property. Once enabled, the depth texture can be accessed in the Shader via the camera_DepthTexture property. Depth textures can be used to implement soft particles and water edge transitions, as well as some simple post-processing effects.

Note: Depth textures only render non-transparent objects.

Opaque Texture

The camera can enable the opaque texture through the opaqueTextureEnabled property. Once enabled, the camera_OpaqueTexture can be used in the shader of the transparent queue. Additionally, you can set downsampling according to clarity requirements and performance demands by configuring opaqueTextureDownsampling.