To display a terrain grid (specifically for golf), you must perform three steps:
- Activate the grid: Use
TERRAINGRID_ACTIVATE to toggle the grid on or off. - Set grid parameters: Use
TERRAINGRID_SET_PARAMS to define the grid's location, size, rotation, normal height, and the height ratios between the minimum, normal, and maximum levels. - Set grid colors: Use
TERRAINGRID_SET_COLOURS to define the color scheme for the different elevation levels.
// 1. Toggle the grid on
N_0xa356990e161c9e65(true);
// 2. Configure location, size, rotation, normal height, and height ratios
N_0x1c4fc5752bcd8e48(-1114.121f, 220.789f, 63.78f, -1f, 0.85f, 0f, 15f, 15f, -1f, 20f, 40f, 63.78f, 0.2f);
// 3. Define colors: red for lower, white for normal, yellow for higher
N_0x5ce62918f8d703c7(255, 0, 0, 64, 255, 255, 255, 5, 255, 255, 0, 64);