4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-15 10:54:18 +00:00

Expose kAlphaTestHigh for halos

This commit is contained in:
2016-01-24 21:29:10 -05:00
parent 7d75474d1c
commit 4a7f0eaea9
3 changed files with 6 additions and 0 deletions

View File

@ -206,6 +206,8 @@ class MaterialConverter:
layer.opacity = layer_props.opacity / 100
if layer_props.opacity < 100:
state.blendFlags |= hsGMatState.kBlendAlpha
if layer_props.alpha_halo:
state.blendFlags |= hsGMatState.kBlendAlphaTestHigh
# Export the specific texture type
self._tex_exporters[texture.type](bo, hsgmat, layer, slot)

View File

@ -31,6 +31,9 @@ class PlasmaLayer(bpy.types.PropertyGroup):
min=0,
max=100,
subtype="PERCENTAGE")
alpha_halo = BoolProperty(name="Fix Alpha Halo",
description="Fixes halos seen around semitransparent objects resulting from sorting errors",
default=False)
envmap_color = FloatVectorProperty(name="Environment Map Color",
description="The default background color rendered onto the Environment Map",

View File

@ -77,3 +77,4 @@ class PlasmaLayerPanel(TextureButtonsPanel, bpy.types.Panel):
col = split.column()
col.label("General:")
col.prop(layer_props, "opacity", text="Opacity")
col.prop(layer_props, "alpha_halo")