Multi |
The MultiMaterialModelNode type exposes the following members.
Name | Description | |
---|---|---|
AddSubMesh(SubMesh) | AddSubMesh method adds the specified SubMesh to this MultiMaterialModelNode. | |
AddSubMesh(Int32, Int32, Material, Material, String) | AddSubMesh method adds a new SubMesh that will render triangles with the specified start index and index count. Note that index numbers are not triangle indexes but indexes in the IndexBuffer. For example to set start location to the second triangle, set startIndexLocation to 3 (indices from 0 to 2 define the first triangle). | |
AddSubMesh(Int32, Int32, BoundingBox, Material, Material, String) | AddSubMesh method adds a new SubMesh that will render triangles with the specified start index and index count. Note that index numbers are not triangle indexes but indexes in the IndexBuffer. For example to set start location to the second triangle, set startIndexLocation to 3 (indices from 0 to 2 define the first triangle). | |
CollectRenderingItems |
CollectRenderingItems
(Overrides SceneNodeCollectRenderingItems(RenderingContext)) | |
DisconnectMaterial | ||
DisconnectMesh | ||
Dispose |
Dispose
(Overrides SceneNodeDispose(Boolean)) | |
DisposeRenderingItems |
DisposeRenderingItems
(Overrides SceneNodeDisposeRenderingItems) | |
DisposeWithMaterials | DisposeWithMaterials disposes this MultiMaterialModelNode and also disposes all the materials that are used by this MultiMaterialModelNode. | |
GetCenterPosition |
Returns center position of this MultiMaterialModelNode.
Center position is calculated from the center position of the bounding box that is
transformed by the Transform (when applyTransformation parameter is true).
When mesh is not defined or no sub meshes are added, then (0, 0, 0) is returned (regardless of the Transformation).
(Overrides RenderedNodeGetCenterPosition(Boolean, Boolean)) | |
GetClosestHitResult | ||
GetMaterialIndex | GetMaterialIndex can be called to get the MaterialIndex that is used in the SubMesh. If the material was already used by some other SubMesh, then existing index is returned, otherwise a new index is returned. | |
GetMesh | Returns the mesh that is used by this MultiMaterialModelNode. | |
GetNextHitResult | ||
OnInitializeSceneResources |
Initializes resources with the specified Scene and GpuDevice.
This method can be override and is called from InitializeSceneResources(Scene) method.
(Overrides InitializedSceneComponentOnInitializeSceneResources(Scene, VulkanDevice)) | |
OnIsVisibleChanged |
OnIsVisibleChanged is called when the value of IsVisible property is changed.
Overridden implementations should update the IsVisible property of the RenderingItem objects that were already added to RenderingLayers.
(Overrides SceneNodeOnIsVisibleChanged(Boolean)) | |
OnUpdate |
OnUpdate
(Overrides SceneNodeOnUpdate) | |
OnWorldMatrixChanged |
OnWorldMatrixChanged
(Overrides SceneNodeOnWorldMatrixChanged) | |
RemoveSubMesh | RemoveSubMesh removes the specified SubMesh. | |
UpdateLocalBoundingBox |
UpdateLocalBoundingBox
(Overrides SceneNodeUpdateLocalBoundingBox) | |
UpdateRenderingItemMesh |