Obi  7.0.5
Unified particle physics for Unity
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Obi.ObiMeshRopeRenderSystem Class Reference
Inheritance diagram for Obi.ObiMeshRopeRenderSystem:
Obi.RenderSystem< T > Obi.IRenderSystem Obi.ComputeMeshRopeRenderSystem

Public Member Functions

 ObiMeshRopeRenderSystem (ObiSolver solver)
 
void Dispose ()
 
void Setup ()
 
void Step ()
 
virtual void Render ()
 
void BakeMesh (ObiRopeMeshRenderer renderer, ref Mesh mesh, bool transformToActorLocalSpace=false)
 
- Public Member Functions inherited from Obi.RenderSystem< T >
Type IRenderSystem. GetRendererType ()
 
virtual bool AddRenderer (T renderer)
 
virtual bool RemoveRenderer (T renderer)
 

Protected Member Functions

virtual void PopulateBatches ()
 
virtual void CloseBatches ()
 

Protected Attributes

List< ObiRopeMeshRenderersortedRenderers = new List<ObiRopeMeshRenderer>()
 
VertexAttributeDescriptor[] layout
 
ObiSolver m_Solver
 
List< DynamicRenderBatch
< ObiRopeMeshRenderer > > 
batchList = new List<DynamicRenderBatch<ObiRopeMeshRenderer>>()
 
MeshDataBatch meshData
 
ObiNativeList< int > meshIndices
 
ObiNativeList< int > pathSmootherIndices
 
ObiNativeList< BurstMeshDatarendererData
 
ObiNativeList< int > sortedIndices
 
ObiNativeList< int > sortedOffsets
 
ObiNativeList< int > vertexOffsets
 
ObiNativeList< int > vertexCounts
 
ObiPathSmootherRenderSystem pathSmootherSystem
 

Static Protected Attributes

static ProfilerMarker m_SetupRenderMarker = new ProfilerMarker("SetupMeshRopeRendering")
 
static ProfilerMarker m_RenderMarker = new ProfilerMarker("MeshRopeRendering")
 

Properties

Oni.RenderingSystemType typeEnum [get]
 
RendererSet< ObiRopeMeshRendererrenderers [get]
 
- Properties inherited from Obi.RenderSystem< T >
RendererSet< T > renderers [get]
 
bool IRenderSystem. isEmpty [get]
 
- Properties inherited from Obi.IRenderSystem
uint tier [get]
 
Oni.RenderingSystemType typeEnum [get]
 
bool isEmpty [get]
 

Member Data Documentation

VertexAttributeDescriptor [] Obi.ObiMeshRopeRenderSystem.layout
protected
Initial value:
=
{
new VertexAttributeDescriptor(VertexAttribute.Position, VertexAttributeFormat.Float32, 3,0),
new VertexAttributeDescriptor(VertexAttribute.Normal, VertexAttributeFormat.Float32, 3,0),
new VertexAttributeDescriptor(VertexAttribute.Tangent, VertexAttributeFormat.Float32, 4,0),
new VertexAttributeDescriptor(VertexAttribute.Color, VertexAttributeFormat.Float32, 4,0),
new VertexAttributeDescriptor(VertexAttribute.TexCoord0, VertexAttributeFormat.Float32, 2,1),
new VertexAttributeDescriptor(VertexAttribute.TexCoord1, VertexAttributeFormat.Float32, 2,1),
new VertexAttributeDescriptor(VertexAttribute.TexCoord2, VertexAttributeFormat.Float32, 2,1),
new VertexAttributeDescriptor(VertexAttribute.TexCoord3, VertexAttributeFormat.Float32, 2,1),
}
ObiNativeList<int> Obi.ObiMeshRopeRenderSystem.pathSmootherIndices
protected

for each renderer, index of its path smoother in the path smoother system.

ObiNativeList<int> Obi.ObiMeshRopeRenderSystem.sortedIndices
protected

axis-sorted vertex indices.

ObiNativeList<int> Obi.ObiMeshRopeRenderSystem.sortedOffsets
protected

for each renderer, offset in the sortedIndices array.

List<ObiRopeMeshRenderer> Obi.ObiMeshRopeRenderSystem.sortedRenderers = new List<ObiRopeMeshRenderer>()
protected

temp list used to store renderers sorted by batch.

ObiNativeList<int> Obi.ObiMeshRopeRenderSystem.vertexCounts
protected

for each renderer, vertex count.

ObiNativeList<int> Obi.ObiMeshRopeRenderSystem.vertexOffsets
protected

for each renderer, vertex offset in its batch mesh data.


The documentation for this class was generated from the following file: