iterami/Docs.htm/common HTM Repos/webgl.js Prefabs/prefabs_webgl_lines_shrub(args)
- Creates a lines shrub prefab with the specified properties.
- Position is the start of the line.
- The color of each vertex is either base or leaf color, depending on distance from the start of the line.
- Types:
- Offset: random number is added to the position for each new point.
- Range: each point is a random position within specified cuboid relative to the start of the line.
- Args will be used in entity creation after being cleaned up by webgl_prefab_args(args).
| base_color
| [.3, .15, 0, 1]
| array of numbers
|
| character
| webgl_character_base
| string ID
|
| draw_mode
| LINE_STRIP
| string
|
| groups
| []
| array of strings
|
| leaf_color
| [0, 1, 0, 1,]
| array of numbers
|
| leaf_distance
| 5
| number
|
| points
| 100
| number
|
| prefix
| entity_id_count
| string ID
|
| type
| 'range'
| 'offset' or 'range'
|
| x_max
| 5
| number
|
| x_min
| -5
| number
|
| y_max
| 5
| number
|
| y_min
| 0
| number
|
| z_max
| 5
| number
|
| z_min
| -5
| number
|