17 lines
401 B
Forth
17 lines
401 B
Forth
//------------------------------------------------------------------------------
|
|
// Depth
|
|
//------------------------------------------------------------------------------
|
|
|
|
void main() {
|
|
#if defined(BLEND_MODE_MASKED)
|
|
MaterialInputs inputs;
|
|
initMaterial(inputs);
|
|
material(inputs);
|
|
|
|
float alpha = inputs.baseColor.a;
|
|
if (alpha < getMaskThreshold()) {
|
|
discard;
|
|
}
|
|
#endif
|
|
}
|