direct.showbase.ShadowPlacer¶
from direct.showbase.ShadowPlacer import ShadowPlacer
ShadowPlacer.py places a shadow.
It traces a line from a light source to the opposing surface. Or it may do that later, right now it puts a node on the surface under the its parent node.
Inheritance diagram
-
class
ShadowPlacer
(cTrav, shadowNodePath, wallCollideMask, floorCollideMask)[source]¶ Bases:
direct.showbase.DirectObject.DirectObject
-
activeCount
= 0¶
-
count
= 0¶
-
notify
= <direct.directnotify.Notifier.Notifier object>¶
-
off
(self)[source]¶ Turn off the shadow placement. The shadow will still be there, but the z position will not be updated until a call to on() is made.
-
on
(self)[source]¶ Turn on the shadow placement. The shadow z position will start being updated until a call to off() is made.
-