Obi  7.0.5
Unified particle physics for Unity
All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Obi.ObiFluidRenderingPass Class Reference
Inheritance diagram for Obi.ObiFluidRenderingPass:

Public Types

enum  MaterialType { Transparent, Opaque, Custom }
 

Public Member Functions

void OnEnable ()
 
void AddRenderer (ObiFluidSurfaceMesher renderer)
 
void RemoveRenderer (ObiFluidSurfaceMesher renderer)
 
void DisposeOfFluidMaterial ()
 
void UpdateRenderers ()
 
Material UpdateFluidMaterial (bool compute)
 

Public Attributes

float voxelSize = 0.1f
 
float isosurface = 0.05f
 
uint descentIterations = 4
 
float descentIsosurface = 0.1f
 
float descentSpeed = 0.8f
 
uint smoothingIterations = 2
 
float smoothingIntensity = 1
 
float bevel = 1f
 
MaterialType materialType = MaterialType.Opaque
 
bool usesCustomMaterial => materialType == MaterialType.Custom
 
bool usesOpaqueMaterial => materialType == MaterialType.Opaque
 
bool usesTransparentMaterial => materialType == MaterialType.Transparent
 
Material customFluidMaterial = null
 
Material customUnderwaterMaterial = null
 
Cubemap reflectionCubemap = null
 
float smoothness = 0.9f
 
float metallic = 0f
 
Color turbidity = Color.clear
 
float thickness = 1f
 
float indexOfRefraction = 1.33f
 
Texture2D diffuseMap = null
 
Color diffuseColor = Color.white
 
Texture2D normalMap = null
 
float normalMapIntensity = 1
 
Vector2 normalMapVelocityRange = new Vector2(10,0)
 
float tiling = 1
 
Texture2D noiseMap = null
 
float noiseMapIntensity = 0.1f
 
float noiseMapTiling = 0.1f
 
float advectTimescale = 1
 
Vector4 advectJump = Vector4.zero
 
float advectOffset = -0.5f
 
float triplanarBlend = 16
 
bool underwaterRendering = false
 
RenderBatchParams renderParameters = new RenderBatchParams(true)
 
int layer
 
RendererSet
< ObiFluidSurfaceMesher
renderers
 

Properties

Material fluidMaterial [get, set]
 
Material underwaterMaterial [get, set]
 

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