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

OutlineEdgesMaterial

Extends:

three~ShaderMaterial → OutlineEdgesMaterial

An outline edge detection shader material.

Constructor Summary

Public Constructor
public

constructor(texelSize: Vector2)

Constructs a new outline edge detection material.

Method Summary

Public Methods
public

Sets the texel size.

Public Constructors

public constructor(texelSize: Vector2) source

Constructs a new outline edge detection material.

Params:

NameTypeAttributeDescription
texelSize Vector2
  • optional

The absolute screen texel size.

Public Methods

public setTexelSize(x: Number, y: Number) source

Sets the texel size.

Params:

NameTypeAttributeDescription
x Number

The texel width.

y Number

The texel height.