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

Public Member Functions

 ObiExtrudedRopeRenderSystem (ObiSolver solver)
 
void Dispose ()
 
virtual void Setup ()
 
abstract void Render ()
 
void Step ()
 
void BakeMesh (ObiRopeExtrudedRenderer 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 Attributes

List< ObiRopeExtrudedRenderersortedRenderers = new List<ObiRopeExtrudedRenderer>()
 
VertexAttributeDescriptor[] layout
 
ObiSolver m_Solver
 
SubMeshDescriptor subMeshDescriptor = new SubMeshDescriptor(0, 0)
 
List< ProceduralRenderBatch
< ProceduralRopeVertex > > 
batchList = new List<ProceduralRenderBatch<ProceduralRopeVertex>>()
 
ObiNativeList
< BurstExtrudedMeshData
rendererData
 
ObiNativeList< int > pathSmootherIndices
 
Dictionary< ObiRopeSection, int > sectionToIndex = new Dictionary<ObiRopeSection, int>()
 
ObiNativeVector2List sectionData
 
ObiNativeList< int > sectionOffsets
 
ObiNativeList< int > sectionIndices
 
ObiNativeList< int > vertexOffsets
 
ObiNativeList< int > triangleOffsets
 
ObiNativeList< int > vertexCounts
 
ObiNativeList< int > triangleCounts
 
ObiPathSmootherRenderSystem pathSmootherSystem
 

Static Protected Attributes

static ProfilerMarker m_SetupRenderMarker = new ProfilerMarker("SetupExtrudedRopeRendering")
 
static ProfilerMarker m_RenderMarker = new ProfilerMarker("ExtrudedRopeRendering")
 

Properties

Oni.RenderingSystemType typeEnum [get]
 
RendererSet
< ObiRopeExtrudedRenderer
renderers [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.ObiExtrudedRopeRenderSystem.layout
protected
Initial value:
=
{
new VertexAttributeDescriptor(VertexAttribute.Position, VertexAttributeFormat.Float32, 3),
new VertexAttributeDescriptor(VertexAttribute.Normal, VertexAttributeFormat.Float32, 3),
new VertexAttributeDescriptor(VertexAttribute.Tangent, VertexAttributeFormat.Float32, 4),
new VertexAttributeDescriptor(VertexAttribute.Color, VertexAttributeFormat.Float32, 4),
new VertexAttributeDescriptor(VertexAttribute.TexCoord0, VertexAttributeFormat.Float32, 2),
}
ObiNativeList<int> Obi.ObiExtrudedRopeRenderSystem.pathSmootherIndices
protected

renderer indices, sorted by batch

ObiNativeList<BurstExtrudedMeshData> Obi.ObiExtrudedRopeRenderSystem.rendererData
protected

for each renderer, data about smoother.

ObiNativeList<int> Obi.ObiExtrudedRopeRenderSystem.sectionIndices
protected

for each renderer, index of the section used.

ObiNativeList<int> Obi.ObiExtrudedRopeRenderSystem.sectionOffsets
protected

for each section, offset of its first entry in the sectionData array.

List<ObiRopeExtrudedRenderer> Obi.ObiExtrudedRopeRenderSystem.sortedRenderers = new List<ObiRopeExtrudedRenderer>()
protected

temp list used to store renderers sorted by batch.

ObiNativeList<int> Obi.ObiExtrudedRopeRenderSystem.triangleCounts
protected

for each renderer, triangle count.

ObiNativeList<int> Obi.ObiExtrudedRopeRenderSystem.triangleOffsets
protected

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

ObiNativeList<int> Obi.ObiExtrudedRopeRenderSystem.vertexCounts
protected

for each renderer, vertex count.

ObiNativeList<int> Obi.ObiExtrudedRopeRenderSystem.vertexOffsets
protected

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


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