Open Asterune
ParticleOperator

ParticleOperator

Stores a custom particle-update shader.

Creatable
Instance.new("ParticleOperator")
Inherits
Instance
Replication
Standard

Behavior

ParticleOperator stores a custom particle-update shader.

Summary

Members4
Properties3
  • CompileError: string? = ""parallel readread only

    The latest compilation error for this source, or nil when compilation has not been attempted, is pending, or has succeeded.

  • Compiled: boolean = falseparallel readread only

    Whether the renderer has reported successful compilation for the current source.

  • Source: string = "fn operate(particle: ParticleState) -> ParticleState { var out = particle; return out; } "parallel readreplicates

    The custom shader program source.

Methods1

Properties

CompileError

ParticleOperator.CompileError: string? = ""

The latest compilation error for this source, or nil when compilation has not been attempted, is pending, or has succeeded.

Compiled

ParticleOperator.Compiled: boolean = false

Whether the renderer has reported successful compilation for the current source.

Source

ParticleOperator.Source: string = "fn operate(particle: ParticleState) -> ParticleState { var out = particle; return out; } "

The custom shader program source. Source length is limited to 64 KiB. Read Compiled and CompileError for renderer compilation results.

Methods

GetExecutionGroup

ParticleOperator:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Inherited members

Inherited47

Instance