15 lines
No EOL
501 B
Markdown
15 lines
No EOL
501 B
Markdown
# Materials: Commands {#mat_commands}
|
|
## depthfunc
|
|
### Syntax
|
|
|
|
**depthFunc <func>**
|
|
|
|
### Overview
|
|
|
|
This controls the depth comparison function used while rendering.
|
|
|
|
The default is **lequal** (Less than or equal to) where any surface that
|
|
is at the same depth or closer of an existing surface is drawn. This is
|
|
used for textures with transparency or translucency. Under some
|
|
circumstances you may wish to use **equal**, e.g. for light-mapped
|
|
grates that are alpha tested (it is also used for mirrors). |