Browse Source

Merge pull request #87 from dpogue/spansort

Sort spans for opacity modifiers
pull/86/head
Adam Johnson 7 years ago committed by GitHub
parent
commit
122d8a1ac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      korman/exporter/mesh.py
  2. 4
      korman/properties/modifiers/render.py

2
korman/exporter/mesh.py

@ -78,7 +78,7 @@ class _DrawableCriteria:
if mod.requires_face_sort:
self.criteria |= plDrawable.kCritSortFaces
if mod.requires_span_sort:
self.sort_spans |= plDrawable.kCritSortSpans
self.criteria |= plDrawable.kCritSortSpans
self.render_level = _RenderLevel(bo, hsgmat, pass_index, self.blend_span)
def __eq__(self, other):

4
korman/properties/modifiers/render.py

@ -81,6 +81,10 @@ class PlasmaFadeMod(PlasmaModifierProperties):
mod.farOpaq = self.far_opaq
mod.farTrans = self.far_trans
@property
def requires_span_sort(self):
return True
class PlasmaFollowMod(idprops.IDPropObjectMixin, PlasmaModifierProperties):
pl_id = "followmod"

Loading…
Cancel
Save