From 38eb0686ef11e13c9eddd43fe2fd5037254e6506 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 26 Dec 2016 19:41:34 -0500 Subject: [PATCH] Ensure detail textures use alpha blending --- korman/exporter/material.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index 553f82a..b062246 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -509,6 +509,10 @@ class MaterialConverter: elif slot.blend_type == "MULTIPLY": detail_blend = TEX_DETAIL_MULTIPLY + # Herp, derp... Detail blends are all based on alpha + if layer_props.is_detail_map and not state.blendFlags & hsGMatState.kBlendMask: + state.blendFlags |= hsGMatState.kBlendAlpha + 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, detail_fade_start=layer_props.detail_fade_start, detail_fade_stop=layer_props.detail_fade_stop,