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

CombineMaterial

Extends:

three~ShaderMaterial → CombineMaterial

A material for combining two textures.

This material supports the two blend modes Add and Screen.

In Screen mode, the two textures are effectively projected on a white screen simultaneously. In Add mode, the textures are simply added together which often produces undesired, washed out results.

Constructor Summary

Public Constructor
public

constructor(screenMode: Boolean)

Constructs a new combine material.

Member Summary

Public Members
public

Method Summary

Public Methods
public

Enables or disables the Screen blend mode.

Public Constructors

public constructor(screenMode: Boolean) source

Constructs a new combine material.

Params:

NameTypeAttributeDescription
screenMode Boolean
  • optional
  • default: false

Whether the screen blend mode should be used.

Public Members

public needsUpdate: boolean source

Public Methods

public setScreenModeEnabled(enabled: Boolean) source

Enables or disables the Screen blend mode.

Params:

NameTypeAttributeDescription
enabled Boolean

Whether the Screen blend mode should be enabled.