velocityDilation.package
This package holds more than this page lists. See all of its files in its world.
README.md
velocityDilation
The radius behind dilateVelocity.renderFeature, and the parameter buffer its
passes read.
local velocityDilation = require("@builtin::systems.velocityDilation.velocityDilation")
velocityDilation.set({ radius = 2 }) -- velocity reaches 2 px past a silhouette
velocityDilation.get().radius -- 2
velocityDilation.active() -- true while the passes run
velocityDilation.clear() -- back to what the geometry passes wrote
radius is clamped to [0, velocityDilation.maxRadius()]. The search costs
(2r+1)² texture loads per pixel, which is what the ceiling bounds. A radius of
0 releases the passes and the intermediate target with them.
The same settings are authorable on an entity as the VelocityDilation
component.