EnableRenderToTexture
(Difference between revisions)
(Created page with "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 = g...") |
Dahnielson (Talk | contribs) |
||
| Line 6: | Line 6: | ||
Camera = getObject("Camera") | Camera = getObject("Camera") | ||
enableRenderToTexture(Camera, "maps/texture.png", 256, 256) | enableRenderToTexture(Camera, "maps/texture.png", 256, 256) | ||
| + | |||
| + | [[Category:Lua scripting]] | ||
Revision as of 18:12, 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)