Skip to content

CustomBlock

Thomas Iché edited this page Oct 27, 2022 · 4 revisions

Custom Block

The custom block enables writing custom HLSL/Compute code and use it in the graph. While it is a custom block, and generates code, it can break easily as it can generate compilation errors. Benefits from this block include the use of iterative statements (for, while loops).

Using the block

The block can be added (by default) on all GPU-compatible contexts (initialize/update/output), for both particle, and particle strips.

The block can be configured using its own inspector.

image

Block Name : name of the block, as it will appear on the title

Configuration

  • Context Type : Contexts where the block is allowed
  • Compatible Data : Data type compatible with the block (Particles and/or ParticleStrips)

Attributes : The list of attributes used in the block and whether they can be read/written Custom Attributes : A list of additional custom (non-standard) attributes used in the block and whether they can be read/written

Properties : The list of properties (connectable) that will be available on the node.

Options

  • Use Total Time makes available the float totalTime value to be read in the block
  • Use Delta Time makes available the float deltaTime value to be read in the block
  • Use Random makes available the RAND and RAND3 macro values to be read in the block
Clone this wiki locally