iterami/Docs.htm/common HTM Projects/webgl.js/webgl_primitive_cuboid(args)
- Creates a cuboid primitive with specified properties.
- Additional default args are handled by webgl_prefab_args(args).
- Translation is the center of the cuboid.
- Each side can overwrite any of the properties applied to "all", or can be not created by setting "exclude" to true.
- If the "vertex-colors" property of a side is empty then a random color will be used.
all
| {}
| object
|
back
| {}
| object
|
bottom
| {}
| object
|
front
| {}
| object
|
left
| {}
| object
|
properties
| {}
| object
|
right
| {}
| object
|
size-x
| 1
| number
|
size-y
| 1
| number
|
size-z
| 1
| number
|
top
| {}
| object
|