Home Reference Source
import {DotScreenMaterial} from 'postprocessing/src/materials/DotScreenMaterial.js'
public class | source

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

Enables or disables the Screen blend mode.

Public Constructors

public constructor(options: Boolean) source

Constructs a new dot screen material.

Params:

NameTypeAttributeDescription
options Boolean
  • optional

The options.

options.average Boolean
  • optional
  • default: false

Whether the shader should output the colour average (black and white).

options.angle Boolean
  • optional
  • default: 1.57

The angle of the dot pattern.

options.scale Boolean
  • optional
  • default: 1.0

The scale of the dot pattern.

options.intensity Boolean
  • optional
  • default: 1.0

The intensity of the effect.

Public Members

public needsUpdate: boolean source

Public Methods

public setAverageEnabled(enabled: Boolean) source

Enables or disables the Screen blend mode.

Params:

NameTypeAttributeDescription
enabled Boolean

Whether the Screen blend mode should be enabled.