SetCameraNear
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
(One intermediate revision 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() |
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)