SetCameraFar
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lua-function|setCameraFar|object, far}} | ||
+ | |||
Set far clipping plane for the camera. Parts of the objects that are farther than far clipping plane will not be rendered. | Set far clipping plane for the camera. Parts of the objects that are farther than far clipping plane will not be rendered. | ||
+ | |||
+ | {{lua-function-param|object|object to operate on}} | ||
+ | {{lua-function-param|far|far plane}} | ||
Camera = getCurrentCamera() | Camera = getCurrentCamera() | ||
Line 5: | Line 10: | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[Category:Camera]] |
Latest revision as of 00:08, 9 February 2014
setCameraFar(object, far)
Set far clipping plane for the camera. Parts of the objects that are farther than far clipping plane will not be rendered.
-
object
: object to operate on -
far
: far plane
Camera = getCurrentCamera() setCameraFar(Camera, 1024)