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

Public Member Functions

 ObiChainRopeRenderSystem (ObiSolver solver)
 
virtual void Dispose ()
 
virtual void Setup ()
 
abstract void Render ()
 
void Step ()
 
void BakeMesh (ObiRopeChainRenderer 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 CloseBatches ()
 

Protected Attributes

VertexAttributeDescriptor[] layout
 
ObiSolver m_Solver
 
List< InstancedRenderBatchbatchList = new List<InstancedRenderBatch>()
 
ObiNativeList< ChainRendererDatarendererData
 
ObiNativeList< ChunkDatachunkData
 
ObiNativeList
< ObiRopeChainRenderer.LinkModifier
modifiers
 
ObiNativeList< Vector2Int > elements
 
ObiNativeList< Matrix4x4 > instanceTransforms
 
ObiNativeList< Matrix4x4 > invInstanceTransforms
 
ObiNativeList< Vector4 > instanceColors
 

Static Protected Attributes

static ProfilerMarker m_SetupRenderMarker = new ProfilerMarker("SetupChainRopeRendering")
 
static ProfilerMarker m_RenderMarker = new ProfilerMarker("ChainRopeRendering")
 

Properties

Oni.RenderingSystemType typeEnum [get]
 
RendererSet< ObiRopeChainRendererrenderers [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.ObiChainRopeRenderSystem.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),
}

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