asc-community / MxEngine

C++ open source 3D game engine
BSD 3-Clause "New" or "Revised" License
1.12k stars 59 forks source link

[Model loading] fix alpha cutoff affect transparency even when render mode is opaque #93

Closed MomoDeve closed 1 year ago

MomoDeve commented 1 year ago

some models have render mode = opaque (not masked), but alpha cutoff = 0.5 (probably default value). The fix is to check first for alpha mask before changing material transparency factor