CameraReflection()
Syntax
CameraReflection(#Camera, #MainCamera, EntityID)Description
Set the #Camera as a reflective camera, using #MainCamera and the EntityID as source. A RTT Texture has to be created from #Camera using CreateRenderTexture(). The material which will use this RTT texture has to be defined with SetMaterialAttribute(Material, #PB_Material_ProjectiveTexturing, #Camera).
This command has to be used in the rendering loop.
Parameters
#Camera The camera to use for the reflection. #MainCamera The camera to use for the reflection source. EntityID The EntityID() to use as source for the reflection.
Return value
None.
See Also
SetMaterialAttribute()
Supported OS
All