update to new lights

This commit is contained in:
Mark Mine 2005-01-21 01:54:56 +00:00
parent e8e2490603
commit 7a57e1e0c2

View File

@ -50,12 +50,12 @@ def lerpBackgroundColor(r,g,b,duration):
# Set direct drawing style for an object # Set direct drawing style for an object
# Never light object or draw in wireframe # Never light object or draw in wireframe
def useDirectRenderStyle(nodePath): def useDirectRenderStyle(nodePath, priority = 0):
""" """
Function to force a node path to use direct render style: Function to force a node path to use direct render style:
no lighting, and no wireframe no lighting, and no wireframe
""" """
nodePath.node().setAttrib(LightAttrib.makeAllOff()) nodePath.setLightOff(priority)
nodePath.setRenderModeFilled() nodePath.setRenderModeFilled()
# File data util # File data util