Dot Screen Effect
Updated
Redraws the image as halftone dots, like print.
- Type
comp-dot-screen-effect- Script class
DotScreenEffectComponent- Per entity
- One
- Version
- 1.3.0
Read about it in Stylize effects: what it does, how to use it from a script, and examples.
Properties
Section titled “Properties”The props the runtime declares for this component, with their defaults and accepted ranges.
| Prop | Default | Range |
|---|---|---|
angle |
90 |
- |
intensity |
1 |
0 ≤ x ≤ 1 |
scale |
1 |
-2 ≤ x ≤ 2 |
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
A halftone print lookThe camera's Dot Screen effect turns the view into printed halftone dots, at the runtime Effects demo's strength. The script turns the dot grid and steps it between fine and coarse.
Watch the dot grid turn and change size every few seconds. Drag to orbit the camera, scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(DotScreenEffectComponent); if (component) log(component.props);}