mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
bit rot
This commit is contained in:
parent
d02ebe4d88
commit
c87dce1190
@ -145,14 +145,14 @@ def avatarShadow():
|
|||||||
def piratesAvatarShadow():
|
def piratesAvatarShadow():
|
||||||
a = avatarShadow()
|
a = avatarShadow()
|
||||||
# Force the lod to be 0 at all times
|
# Force the lod to be 0 at all times
|
||||||
base.localAvatar.getGeomNode().getChild(1).node().forceSwitch(0)
|
base.localAvatar.getGeomNode().getChild(0).node().forceSwitch(0)
|
||||||
return a
|
return a
|
||||||
|
|
||||||
def arbitraryShadow(node):
|
def arbitraryShadow(node):
|
||||||
# Turn off the existing drop shadow, if any
|
# Turn off the existing drop shadow, if any
|
||||||
if hasattr(node, "dropShadow"):
|
if hasattr(node, "dropShadow"):
|
||||||
# stash it so that when the game hides and shows it, it will still be gone
|
# stash it so that when the game hides and shows it, it will still be gone
|
||||||
base.localAvatar.dropShadow.stash()
|
node.dropShadow.stash()
|
||||||
|
|
||||||
# Set up a new node to hold the "light": this is an abitrary point
|
# Set up a new node to hold the "light": this is an abitrary point
|
||||||
# somewhere above the node, looking down, as if from the sun.
|
# somewhere above the node, looking down, as if from the sun.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user