FluXY  1.3
2.5D fluid simulator for Unity
 All Classes Namespaces Functions Variables Pages
Fluxy.FluxyTarget Class Reference
Inheritance diagram for Fluxy.FluxyTarget:

Public Member Functions

delegate void SplatCallback (FluxyTarget target, FluxyContainer container, FluxyStorage.Framebuffer fb, in Vector4 rect)
 
void OnEnable ()
 
virtual void Splat (FluxyContainer container, FluxyStorage.Framebuffer fb, in int tileIndex, in Vector4 rect)
 

Public Attributes

Material splatMaterial
 Material used to splat this target's velocity and density onto containers. More...
 
int rateOverSteps = 1
 Amount of splats per update step. More...
 
float rateOverTime = 0
 Amount of splats per second. More...
 
float rateOverDistance = 0
 Amount of splats per distance unit. More...
 
bool overridePosition = false
 Manually override target splat position. More...
 
Vector2 position = Vector2.zero
 Coordinate to splat this target at when overriding splat position. More...
 
float positionRandomness = 0
 Randomization applied to the splat position. More...
 
bool overrideRotation = true
 Manually override target splat position. More...
 
float rotation = 0
 Rotation of the target's shape when splatted. More...
 
float rotationRandomness = 0
 Randomization applied to the splat rotation. More...
 
bool scaleWithDistance = true
 Scales splat size based on distance from the target to the container's surface. More...
 
bool scaleWithTransform = false
 Scales splat based on maximum transform scale value. More...
 
Vector2 scale = new Vector2(0.1f,0.1f)
 Scale of the target's shape when splatted. More...
 
float scaleRandomness = 0
 Randomization applied to the splat size. More...
 
float velocityWeight = 1
 Amount of velocity splatted. More...
 
Texture velocityTexture
 Texture defining the target's splat shape. More...
 
float maxRelativeVelocity = 8
 Maximum relative velocity between a container and this target. More...
 
Vector3 velocityScale = Vector3.one
 Local-space scale applied to this target's velocity vector. More...
 
float maxRelativeAngularVelocity = 12
 Maximum relative angular velocity between a container and this target. More...
 
float angularVelocityScale = 1
 Scale applied to this target's angular velocity. More...
 
Vector3 force = Vector3.zero
 Local-space force applied by this target, regardless of its velocity More...
 
float torque = 0
 Local-space torque applied by this target, regardless of its angular velocity More...
 
float densityWeight = 1
 Amount of density splatted. More...
 
Texture densityTexture
 Texture defining the target's splat shape. More...
 
BlendMode srcBlend = BlendMode.SrcAlpha
 Blend mode used for source fragments. More...
 
BlendMode dstBlend = BlendMode.OneMinusSrcAlpha
 Blend mode used for destination fragments. More...
 
BlendOp blendOp = BlendOp.Add
 Blend operation used when splatting density. More...
 
Color color = Color.white
 Color splatted by this target onto the container's density buffer. More...
 
Texture noiseTexture
 Texture used to generate density and velocity noise. More...
 
float densityNoise = 0
 Amount of scalar noise modulating density. More...
 
float densityNoiseOffset = 0
 Non-zero values animate noise by offsetting it. More...
 
float densityNoiseTiling = 1
 Tiling scale of density noise. More...
 
float velocityNoise = 0
 Amount of curl noise added to velocity. More...
 
float velocityNoiseOffset = 0
 Non-zero values animate noise by offsetting it. More...
 
float velocityNoiseTiling = 1
 Tiling scale of velocity noise. More...
 

Properties

Vector3 velocity [get]
 
Vector3 angularVelocity [get]
 

Events

SplatCallback OnSplat
 

Member Data Documentation

float Fluxy.FluxyTarget.angularVelocityScale = 1

Scale applied to this target's angular velocity.

BlendOp Fluxy.FluxyTarget.blendOp = BlendOp.Add

Blend operation used when splatting density.

Color Fluxy.FluxyTarget.color = Color.white

Color splatted by this target onto the container's density buffer.

float Fluxy.FluxyTarget.densityNoise = 0

Amount of scalar noise modulating density.

float Fluxy.FluxyTarget.densityNoiseOffset = 0

Non-zero values animate noise by offsetting it.

float Fluxy.FluxyTarget.densityNoiseTiling = 1

Tiling scale of density noise.

Texture Fluxy.FluxyTarget.densityTexture

Texture defining the target's splat shape.

float Fluxy.FluxyTarget.densityWeight = 1

Amount of density splatted.

BlendMode Fluxy.FluxyTarget.dstBlend = BlendMode.OneMinusSrcAlpha

Blend mode used for destination fragments.

Vector3 Fluxy.FluxyTarget.force = Vector3.zero

Local-space force applied by this target, regardless of its velocity

float Fluxy.FluxyTarget.maxRelativeAngularVelocity = 12

Maximum relative angular velocity between a container and this target.

float Fluxy.FluxyTarget.maxRelativeVelocity = 8

Maximum relative velocity between a container and this target.

Texture Fluxy.FluxyTarget.noiseTexture

Texture used to generate density and velocity noise.

bool Fluxy.FluxyTarget.overridePosition = false

Manually override target splat position.

bool Fluxy.FluxyTarget.overrideRotation = true

Manually override target splat position.

Vector2 Fluxy.FluxyTarget.position = Vector2.zero

Coordinate to splat this target at when overriding splat position.

float Fluxy.FluxyTarget.positionRandomness = 0

Randomization applied to the splat position.

float Fluxy.FluxyTarget.rateOverDistance = 0

Amount of splats per distance unit.

int Fluxy.FluxyTarget.rateOverSteps = 1

Amount of splats per update step.

float Fluxy.FluxyTarget.rateOverTime = 0

Amount of splats per second.

float Fluxy.FluxyTarget.rotation = 0

Rotation of the target's shape when splatted.

float Fluxy.FluxyTarget.rotationRandomness = 0

Randomization applied to the splat rotation.

Vector2 Fluxy.FluxyTarget.scale = new Vector2(0.1f,0.1f)

Scale of the target's shape when splatted.

float Fluxy.FluxyTarget.scaleRandomness = 0

Randomization applied to the splat size.

bool Fluxy.FluxyTarget.scaleWithDistance = true

Scales splat size based on distance from the target to the container's surface.

bool Fluxy.FluxyTarget.scaleWithTransform = false

Scales splat based on maximum transform scale value.

Material Fluxy.FluxyTarget.splatMaterial

Material used to splat this target's velocity and density onto containers.

BlendMode Fluxy.FluxyTarget.srcBlend = BlendMode.SrcAlpha

Blend mode used for source fragments.

float Fluxy.FluxyTarget.torque = 0

Local-space torque applied by this target, regardless of its angular velocity

float Fluxy.FluxyTarget.velocityNoise = 0

Amount of curl noise added to velocity.

float Fluxy.FluxyTarget.velocityNoiseOffset = 0

Non-zero values animate noise by offsetting it.

float Fluxy.FluxyTarget.velocityNoiseTiling = 1

Tiling scale of velocity noise.

Vector3 Fluxy.FluxyTarget.velocityScale = Vector3.one

Local-space scale applied to this target's velocity vector.

Texture Fluxy.FluxyTarget.velocityTexture

Texture defining the target's splat shape.

float Fluxy.FluxyTarget.velocityWeight = 1

Amount of velocity splatted.


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