mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -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
|
# 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user