SetCameraNear
From MaratisWiki
(Difference between revisions)
(Created page with "Set near clipping plane for the camera. Parts of the objects that are closer than near clipping plane will not be rendered. Camera = getCurrentCamera() setCameraNear(Camera...") |
Dahnielson (Talk | contribs) m |
||
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lua-function|setCameraNear|object, near}} | ||
+ | |||
Set near clipping plane for the camera. Parts of the objects that are closer than near clipping plane will not be rendered. | Set near clipping plane for the camera. Parts of the objects that are closer than near clipping plane will not be rendered. | ||
+ | |||
+ | {{lua-function-param|object|object to operate on}} | ||
+ | {{lua-function-param|near|near plane}} | ||
Camera = getCurrentCamera() | Camera = getCurrentCamera() | ||
setCameraNear(Camera, 1.0) | setCameraNear(Camera, 1.0) | ||
+ | |||
+ | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[Category:Camera]] |
Latest revision as of 00:07, 9 February 2014
setCameraNear(object, near)
Set near clipping plane for the camera. Parts of the objects that are closer than near clipping plane will not be rendered.
-
object
: object to operate on -
near
: near plane
Camera = getCurrentCamera() setCameraNear(Camera, 1.0)