C# Class Fluid2D, UnityFluid2D

Inheritance: MonoBehaviour
Mostrar archivo Open project: hiroakioishi/UnityFluid2D

Public Properties

Property Type Description
AdvectShader Shader
ApplyForceShader Shader
BufferSizeHeight int
BufferSizeWidth int
DivergenceShader Shader
IsLeftMouseButtonDown bool
PressureGradientSubstractShader Shader
PressureSolveShader Shader
UpdateDyeShader Shader

Public Methods

Method Description
GetFlowVelocityFieldTex ( ) : RenderTexture
GetFluidTex ( ) : RenderTexture
OnDestroy ( ) : void
OnGUI ( ) : void
Setup ( ) : void
Start ( ) : void
Step ( float dt_ ) : void
Update ( ) : void
_advect ( RenderTexture &targetBuffer_, float dt_ ) : void
_applyForces ( float dt_ ) : void
_computeDivergence ( ) : void
_createBuffer ( RenderTexture &rt_, int bufferWidth_, int bufferHeight_ ) : void
_createBuffers ( ) : void
_createMaterial ( Material &mat_, Shader shader_ ) : void
_createMaterials ( ) : void
_destroyBuffer ( RenderTexture &buffer_ ) : void
_destroyBuffers ( ) : void
_destroyMaterial ( Material &mat_ ) : void
_destroyMaterials ( ) : void
_resetBuffer ( RenderTexture &rt_ ) : void
_resetBuffers ( ) : void
_solvePressure ( ) : void
_subtractPressureGradient ( ) : void
_swapBuffer ( RenderTexture buffer_ ) : void
_updateDye ( float dt_ ) : void

Method Details

GetFlowVelocityFieldTex() public method

public GetFlowVelocityFieldTex ( ) : RenderTexture
return RenderTexture

GetFluidTex() public method

public GetFluidTex ( ) : RenderTexture
return RenderTexture

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

Setup() public method

public Setup ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Step() public method

public Step ( float dt_ ) : void
dt_ float
return void

Update() public method

public Update ( ) : void
return void

_advect() public method

public _advect ( RenderTexture &targetBuffer_, float dt_ ) : void
targetBuffer_ RenderTexture
dt_ float
return void

_applyForces() public method

public _applyForces ( float dt_ ) : void
dt_ float
return void

_computeDivergence() public method

public _computeDivergence ( ) : void
return void

_createBuffer() public method

public _createBuffer ( RenderTexture &rt_, int bufferWidth_, int bufferHeight_ ) : void
rt_ RenderTexture
bufferWidth_ int
bufferHeight_ int
return void

_createBuffers() public method

public _createBuffers ( ) : void
return void

_createMaterial() public method

public _createMaterial ( Material &mat_, Shader shader_ ) : void
mat_ Material
shader_ Shader
return void

_createMaterials() public method

public _createMaterials ( ) : void
return void

_destroyBuffer() public method

public _destroyBuffer ( RenderTexture &buffer_ ) : void
buffer_ RenderTexture
return void

_destroyBuffers() public method

public _destroyBuffers ( ) : void
return void

_destroyMaterial() public method

public _destroyMaterial ( Material &mat_ ) : void
mat_ Material
return void

_destroyMaterials() public method

public _destroyMaterials ( ) : void
return void

_resetBuffer() public method

public _resetBuffer ( RenderTexture &rt_ ) : void
rt_ RenderTexture
return void

_resetBuffers() public method

public _resetBuffers ( ) : void
return void

_solvePressure() public method

public _solvePressure ( ) : void
return void

_subtractPressureGradient() public method

public _subtractPressureGradient ( ) : void
return void

_swapBuffer() public method

public _swapBuffer ( RenderTexture buffer_ ) : void
buffer_ RenderTexture
return void

_updateDye() public method

public _updateDye ( float dt_ ) : void
dt_ float
return void

Property Details

AdvectShader public_oe property

public Shader AdvectShader
return Shader

ApplyForceShader public_oe property

public Shader ApplyForceShader
return Shader

BufferSizeHeight public_oe property

public int BufferSizeHeight
return int

BufferSizeWidth public_oe property

public int BufferSizeWidth
return int

DivergenceShader public_oe property

public Shader DivergenceShader
return Shader

IsLeftMouseButtonDown public_oe property

public bool IsLeftMouseButtonDown
return bool

PressureGradientSubstractShader public_oe property

public Shader PressureGradientSubstractShader
return Shader

PressureSolveShader public_oe property

public Shader PressureSolveShader
return Shader

UpdateDyeShader public_oe property

public Shader UpdateDyeShader
return Shader