Files
filament/shaders/src/depth_main.fs
2018-08-03 10:38:22 -07:00

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
}