Gist 117c6f1a891bf4503093a2e35d73a593
✓ Published0🌍 Public
Aandybak
Last edited Mar 6, 2019
Created on Mar 6, 2019
This example presents a Unity Visual Effect Graph block that blends particle colors using 16 different Photoshop-style blend modes, including Screen, Multiply, Overlay, and Difference. It shows how the block reads and writes the particle color attribute through the VFXAttributeInfo API, while exposing a blend color input and a mode selector via VFXSetting. The code implements each mode as a custom HLSL snippet, with conditional expressions for modes like SoftLight and HardLight, applied directly to the color value in the particle update or output context.
AI-generated description