Panda3D
Loading...
Searching...
No Matches
ShadowCaster Class Reference

Public Member Functions

 __init__ (self, lightPath, objectPath, filmX, filmY)
 
 clear (self)
 
 setGround (self, groundPath)
 

Public Attributes

 buffer
 
 camera = Camera('shadowCamera')
 
 cameraPath = self.lightPath.attachNewNode(self.camera)
 
 groundPath = None
 
 lens = OrthographicLens()
 
 lightPath = lightPath
 
 objectPath = objectPath
 
 stage = TextureStage('shadow')
 
 tex = self.buffer.getTexture()
 

Static Public Attributes

int texXSize = 128
 
int texYSize = 128
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
lightPath,
objectPath,
filmX,
filmY )

Member Function Documentation

◆ clear()

clear ( self)
 Undoes the effect of the ShadowCaster. 

◆ setGround()

setGround ( self,
groundPath )
 Specifies the part of the world that is to be considered
the ground: this is the part onto which the rendered texture
will be applied. 

Member Data Documentation

◆ buffer

buffer
Initial value:
= base.win.makeTextureBuffer(
'shadowBuffer', self.texXSize, self.texYSize)

◆ camera

camera = Camera('shadowCamera')

◆ cameraPath

cameraPath = self.lightPath.attachNewNode(self.camera)

◆ groundPath

groundPath = None

◆ lens

lens = OrthographicLens()

◆ lightPath

lightPath = lightPath

◆ objectPath

objectPath = objectPath

◆ stage

stage = TextureStage('shadow')

◆ tex

tex = self.buffer.getTexture()

◆ texXSize

int texXSize = 128
static

◆ texYSize

int texYSize = 128
static