Skip to content

Bezier Patch

skzk edited this page Apr 29, 2022 · 18 revisions

Item ID: 0x27 (39)
Item file: aux

Structure

Field(s) Description
struct kdop_item See kDOP item.

Flags:

Bit 0: Ignore cut planes
Bit 1: Water reflection
Bit 2-3: Noise power. 0 = 100%; 1 = 50%; 2 = 0%.
Bit 4: No detail vegetation
Bit 5: Low poly vegetation
Bit 6: No collision
Bit 7: No terrain shadows
Bit 8: Inner vegetation sphere space
Bit 9: Smooth detail vegetation
Bit 10: No vegetation collision

float3 control_point x16 The positions of the 4x4 control points of the item, relative to its center.
u16 x_tess
u16 z_tess

Amount of terrain quad columns and rows of the generated terrain (minus one, so setting it to 4, for example, will generate 5).

The maximum value is 250.

u64 node_uid UID of the node of this item.
u32 rnd_seed The seed used for placing vegetation.
struct vegetation x3 Vegetation, see Vegetation struct.
u32 veg_sphere_count
array_struct veg_spheres
List of vegetation spheres. See Vegetation sphere struct.
struct quad_info Terrain data. See Quad info struct. size_x and size_y correspond to x_tess + 1 and z_tess + 1.

Clone this wiki locally