import {DotScreenMaterial} from 'postprocessing/src/materials/DotScreenMaterial.js'
DotScreenMaterial
Extends:
three~ShaderMaterial → DotScreenMaterial
A dot screen shader material.
Constructor Summary
Public Constructor | ||
public |
constructor(options: Boolean) Constructs a new dot screen material. |
Member Summary
Public Members | ||
public |
|
Method Summary
Public Methods | ||
public |
setAverageEnabled(enabled: Boolean) Enables or disables the Screen blend mode. |
Public Constructors
public constructor(options: Boolean) source
Constructs a new dot screen material.
Params:
Name | Type | Attribute | Description |
options | Boolean |
|
The options. |
options.average | Boolean |
|
Whether the shader should output the colour average (black and white). |
options.angle | Boolean |
|
The angle of the dot pattern. |
options.scale | Boolean |
|
The scale of the dot pattern. |
options.intensity | Boolean |
|
The intensity of the effect. |