EnableRenderToTexture

From MaratisWiki
Revision as of 01:12, 9 February 2014 by Dahnielson (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

enableRenderToTexture(object, texture, width, height)

Enables a camera to render directly to a texture.

  • object : object to operate on
  • texture : texture to replace
  • width : width
  • height : height

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