Browse Source

Merge pull request #70 from dpogue/detail-blend

Set kBlendDetail flag on detail blends
pull/73/head
Adam Johnson 7 years ago committed by GitHub
parent
commit
94dd8b1de3
  1. 2
      korman/exporter/material.py

2
korman/exporter/material.py

@ -590,7 +590,7 @@ class MaterialConverter:
# Herp, derp... Detail blends are all based on alpha # Herp, derp... Detail blends are all based on alpha
if layer_props.is_detail_map and not state.blendFlags & hsGMatState.kBlendMask: if layer_props.is_detail_map and not state.blendFlags & hsGMatState.kBlendMask:
state.blendFlags |= hsGMatState.kBlendAlpha state.blendFlags |= hsGMatState.kBlendDetail
key = _Texture(texture=texture, use_alpha=has_alpha, force_calc_alpha=slot.use_stencil, key = _Texture(texture=texture, use_alpha=has_alpha, force_calc_alpha=slot.use_stencil,
is_detail_map=layer_props.is_detail_map, detail_blend=detail_blend, is_detail_map=layer_props.is_detail_map, detail_blend=detail_blend,

Loading…
Cancel
Save