Z-Write (depth writing / ZWrite) is a technical term that is extremely important in rendering and optimizing game graphics (technical art). When an object is drawn, the distance of that pixel from the camera (depth value) is recorded in a dedicated Depth Buffer, and is used to determine the front and back of subsequent objects.

An analogy in the real world: The process of forgetting to put a ``temporary stamp (distance) of scheduled stay'' on a hotel's room management board

Z-Write is ``a process of sticking a pin (depth value) on the board to prove that a guest has already checked in for each hotel room (screen pixel).'' When the pin is inserted, the customers (objects) who arrive later will know that there is already a customer in front of them. However, when the translucent ghost (effect) uses the room, do not pin it (ZWrite Off). If the ghost sticks the pin, real people who come later will not be able to enter the room. The ghost should only silently pass (blend) through the room.

Z-Write (depth writing / ZWrite) concept infographic diagram

Figure: Infographic that clearly illustrates the basic processing flow and mechanism of Z-Write (depth writing / ZWrite) in Japanese notation

Detailed mechanism and operating principle

Set the ZWrite property of the translucent material (Transparent Queue) to "OFF" to prevent its own distance information from being written to the buffer during drawing and blend overlaps correctly.