2022-10-03 00:10:54 +00:00
|
|
|
# Materials: Commands {#mat_commands}
|
|
|
|
## depthwrite
|
2022-10-17 20:33:16 +00:00
|
|
|
### Syntax
|
2022-10-03 00:10:54 +00:00
|
|
|
|
|
|
|
**depthWrite**
|
|
|
|
|
2022-10-17 20:33:16 +00:00
|
|
|
### Overview
|
2022-10-03 00:10:54 +00:00
|
|
|
|
|
|
|
By default, writes to the depth buffer when
|
|
|
|
[depthFunc](depthFunc) passes will happen
|
|
|
|
for opaque surfaces and not for translucent surfaces.
|
|
|
|
|
|
|
|
Blended surfaces can have the depth writes forced with this function.
|