direct.showbase.ShadowDemo¶
from direct.showbase.ShadowDemo import ShadowCaster, arbitraryShadow, avatarShadow, piratesAvatarShadow
Create a cheesy shadow effect by rendering the view of an object (e.g. the local avatar) from a special camera as seen from above (as if from the sun), using a solid gray foreground and a solid white background, and then multitexturing that view onto the world.
This is meant primarily as a demonstration of multipass and multitexture rendering techniques. It’s not a particularly great way to do shadows.
Inheritance diagram
digraph inheritance9a41f71873 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "ShadowCaster" [URL="direct.showbase.ShadowDemo.html#direct.showbase.ShadowDemo.ShadowCaster",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top"]; }