The Render3Mixin design provides direct support for three.js modeling and rendering.
castShadow: | Determines whether this object can cast shadows. Shadows must be enabled in the scene for this to take effect. |
color: | Defines the color/material used to render this object.If not supplied, the parent's color is used. |
isSelectable: | Set this to true to allow this model to be selected in a graphics window. |
layer: | Defines the layer membership of this model. If not supplied, the parent's layer is used. Layer names can include spaces and underscores, but leading double-underscores are reserved for kernel use. Use of colon, comma, and period are not permitted. If transferring data to other systems, their layer naming restrictions should be respected. |
receiveShadow: | Determines whether this object can receive shadows. Shadows must be enabled in the scene for this to take effect. |
renderChildren: | Controls whether the children of this model will be shown. |
renderNode: | Set to true to force this node to render if it has geometry. By default, non-leaf geometry does not render. |
sceneName: | Sets the scene into which this model will be inserted. The default sceneName is 'model', If a different name |
is added to a part or object a menu will show up in the lower left hand corner of the Model window. From here |
you can select which scene name that you would like to view. |
show: | Set to false to prevent this branch from display. |
showModel: | This demands the model to be rendered on the client. |
Mixins
FrameMixin
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
---|---|---|---|---|
castShadow |
boolean |
true |
Render |
Cached |
color |
string |
"Default" |
Render |
Cached lookup |
isSelectable |
boolean |
false |
Render |
Cached |
layer |
string |
this.nha.layer |
Render |
Cached |
receiveShadow |
boolean |
true |
Render |
Cached |
renderChildren |
boolean |
this.show |
Render |
Cached |
renderNode |
boolean |
this.children.length === 0 |
Render |
Cached |
sceneName |
string |
"model" |
Render |
Cached |
show |
boolean |
this.nha.renderChildren |
Render |
Cached |
showModel |
string |
(this.show && this.renderNode) ? R.THREE.showModel( this.renderName, this.__pos3, this.__mod3, this.__mat3, true ) : R.nullHandle |
Render |
Cached |
All 'RenderMixins' use this.