mirror of
https://github.com/H-uru/korman.git
synced 2025-07-14 22:36:52 +00:00
kBlendAlpha is illegal with kBlendAlphaMult and kBlendAlphaAdd
This commit is contained in:
@ -432,11 +432,12 @@ class MaterialConverter:
|
||||
if not slot.use_stencil:
|
||||
# mutually exclusive blend flags
|
||||
if texture.use_alpha and has_alpha:
|
||||
state.blendFlags |= hsGMatState.kBlendAlpha
|
||||
if slot.blend_type == "ADD":
|
||||
state.blendFlags |= hsGMatState.kBlendAlphaAdd
|
||||
elif slot.blend_type == "MULTIPLY":
|
||||
state.blendFlags |= hsGMatState.kBlendAlphaMult
|
||||
else:
|
||||
state.blendFlags |= hsGMatState.kBlendAlpha
|
||||
|
||||
if texture.invert_alpha and has_alpha:
|
||||
state.blendFlags |= hsGMatState.kBlendInvertAlpha
|
||||
|
Reference in New Issue
Block a user