041D

From GTAMods Wiki
Jump to navigation Jump to search

GTA III Vice City San Andreas SET_NEAR_CLIP


Description

Sets the near clip

Syntax

041D: set_camera_near_clip [flt]

Parameter

[flt]
Near clip value, default 0.9

This opcode sets the near clip of the camera. Anything closer to the camera than the specified value will be clipped by the game as seen in the image below. The effect of this opcode resets to its default value of 0.9 anytime a cutscene clears. Small values close to or at 0.0 will cause weird graphical glitches and negative values will clip everything that can be clipped so those value are not recommended. The opcode is generally used during cutscenes but it can be used anytime.

0.9 (default) 0.1 (used in cutscene)
0.9 0.1

Keywords

set, camera, near, clip