create a material to add to visibile engine3d entities
engine3d material that can be added to multiple meshes and dynamically changed
| Parameter | Type | Description |
|---|---|---|
| canvas | String | Name of the canvas to add to |
| name | String | unique name of the material |
| onComplete | Function | function to run after adding the image (takes the newly create image as a parameter) |
engine3d material that can be added to multiple meshes and dynamically changed
| Parameter | Type | Description |
|---|---|---|
| canvas | String | Name of the canvas to add to |
| name | String | unique name of the material |
| onComplete | Function | function to run after adding the image (takes the newly create image as a parameter) |
engine3d material that can be added to multiple meshes and dynamically changed
| Parameter | Type | Description |
|---|---|---|
| canvas | String | Name of the canvas to add to |
| name | String | unique name of the material |
| onComplete | Function | function to run after adding the image (takes the newly create image as a parameter) |
engine3d material using a 2d canvas, that can be added to multiple meshes and dynamically changed
| Parameter | Type | Description |
|---|---|---|
| canvas | String | Name of the canvas to add to |
| name | String | unique name of the material |
| targetCanvas | DOM Canvas | 2d canvas target to render from |
| onComplete | Function | function to run after adding the image (takes the newly create image as a parameter) |
add basic material
| Parameter | Type | Description |
|---|---|---|
| canvas | String | Name of the canvas to add to |
| name | String | unique name of the material |
| onComplete | Function | function to run after adding the image (takes the newly create image as a parameter) |
add metalic material
| Parameter | Type | Description |
|---|---|---|
| canvas | String | Name of the canvas to add to |
| name | String | unique name of the material |
| onComplete | Function | function to run after adding the image (takes the newly create image as a parameter) |
add glossy material
| Parameter | Type | Description |
|---|---|---|
| canvas | String | Name of the canvas to add to |
| name | String | unique name of the material |
| onComplete | Function | function to run after adding the image (takes the newly create image as a parameter) |