EnableRenderToTexture

(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
  
 
[[Category:Lua scripting]]
 
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:Camera]]

Revision as of 19:41, 4 February 2014

Enables a camera to render directly to a texture


Example, will replace the texture "maps/texture.png" by the render of the camera with a 256x256 resolution :

   Camera = getObject("Camera")
   enableRenderToTexture(Camera, "maps/texture.png", 256, 256)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox