Documentation: MaterialComponent

From Noita Wiki
Jump to navigation Jump to search
Name Type Initial Value Example Range Description
Members
material_name std::string
material_index int 10 [-100, 100]
material_min float 0.1 [0, 3.5]
material_max float 0.1 [0, 3.5]
add_perlin bool false
add_perlin_scale_x float 1
add_perlin_scale_y float 1
is_rare bool false
limit_y bool false
limit_min_y float 100 [-1024, 2048]
limit_max_y float 2048 [-1024, 2048]
rare_use_perlin bool false
rare_use_fbm_perlin bool false
rare_use_polka bool true
rare_scale_x float 0.05 [0, 0.05]
rare_scale_y float 0.05 [0, 0.05]
rare_offset_by_seed bool false if set, will add worldseed to x,y
rare_offset_x float 0 adds this offset before calling the noise functions
rare_offset_y float 0 adds this offset before calling the noise functions
rare_polka_radius_low float 0.2
rare_polka_radius_high float 0.65
rare_polka_is_boxed bool true
rare_polka_probability float 0.2
rare_required_min float 0.2 [-1, 1]
rare_required_max float 1 [-1, 1]
is_polygon bool false if true, uses points inside polygon to determine if this material is placed
Custom data types
polygon POLYGON_VEC points are within [0-1],[0-1]
Privates
celldata const grid::CellData*