From 1b0e2e715e73b854746a64d984b3c36a6c587e44 Mon Sep 17 00:00:00 2001 From: jb Date: Sun, 7 Feb 2016 11:32:36 +0100 Subject: [PATCH] Don't force clamping on stencils --- korman/exporter/material.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index 2cb2eac..7a938b9 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -166,7 +166,8 @@ class MaterialConverter: if slot.use_stencil: hsgmat.compFlags |= hsGMaterial.kCompNeedsBlendChannel state.blendFlags |= hsGMatState.kBlendAlpha | hsGMatState.kBlendAlphaMult | hsGMatState.kBlendNoTexColor - state.clampFlags |= hsGMatState.kClampTexture + if slot.texture and slot.texture.type == "BLEND": + state.clampFlags |= hsGMatState.kClampTexture state.ZFlags |= hsGMatState.kZNoZWrite layer.ambient = hsColorRGBA(1.0, 1.0, 1.0, 1.0)