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:
@ -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)
|
||||
|
@ -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",
|
||||
|
@ -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")
|
||||
|
Reference in New Issue
Block a user