new RenderModel(json)
Render object3D component model store data to render an object3D (in an external context), a render controller should be implemented to use it
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
json | object | json to configure render model Properties
|
- Source
Members
color :Array.<number>
color to apply to the 3D model
Type:
- Array.<number>
- Source
idRenderData :string
id of render data
Type:
- string
- Source
Methods
getColor() → {Array.<number>}
- Source
Returns:
- render model color rgba
- Type:
- Array.<number>
getIdRenderData() → {string}
- Source
Returns:
- script model id render data
- Type:
- string
setColor(color)
Parameters:
Name | Type | Description |
---|---|---|
color | Array.<number> | new color of render model |
- Source
setIdRenderData(value)
Parameters:
Name | Type | Description |
---|---|---|
value | string | new id render data of render model |
- Source
toJSON() → {object}
- Source
Returns:
- export render model to json object
- Type:
- object