mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
update to new lights
This commit is contained in:
parent
e8e2490603
commit
7a57e1e0c2
@ -50,12 +50,12 @@ def lerpBackgroundColor(r,g,b,duration):
|
||||
|
||||
# Set direct drawing style for an object
|
||||
# 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:
|
||||
no lighting, and no wireframe
|
||||
"""
|
||||
nodePath.node().setAttrib(LightAttrib.makeAllOff())
|
||||
nodePath.setLightOff(priority)
|
||||
nodePath.setRenderModeFilled()
|
||||
|
||||
# File data util
|
||||
|
Loading…
x
Reference in New Issue
Block a user