0

added a Hide() render primitive

This commit is contained in:
Aaron Griffith
2012-04-12 15:16:19 -04:00
parent db0a1d3415
commit f5797dd8a0
3 changed files with 126 additions and 0 deletions

View File

@@ -188,6 +188,12 @@ class MineralOverlay(Overlay):
'minerals' : ('a list of (blockid, (r, g, b)) tuples for coloring minerals', None),
}
class Hide(RenderPrimitive):
name = "hide"
options = {
'blocks' : ('a list of blockids or (blockid, data) tuples of blocks to hide', []),
}
# Built-in rendermodes for your convenience!
normal = [Base(), EdgeLines()]
lighting = [Base(), EdgeLines(), Lighting()]