Home Reference Source
import {OutlineMaterial} from 'postprocessing'
public class | source

OutlineMaterial

Extends:

three~ShaderMaterial → OutlineMaterial

Implements:

An outline shader material.

Constructor Summary

Public Constructor
public

constructor(texelSize: Vector2)

Constructs a new outline material.

Member Summary

Public Members
public set

inputBuffer: Texture

The input buffer.

Method Summary

Public Methods
public

setInputBuffer(value: Texture)

this method was deprecated. Use inputBuffer instead.

Sets the input buffer.

public

setSize(width: Number, height: Number)

Sets the size of this object.

public
this method was deprecated. Use setSize() instead.

Sets the texel size.

Public Constructors

public constructor(texelSize: Vector2) source

Constructs a new outline material.

TODO Remove texelSize param.

Params:

NameTypeAttributeDescription
texelSize Vector2
  • optional

The screen texel size.

Public Members

public set inputBuffer: Texture source

The input buffer.

Public Methods

public setInputBuffer(value: Texture) source

this method was deprecated. Use inputBuffer instead.

Sets the input buffer.

Params:

NameTypeAttributeDescription
value Texture

The input buffer.

public setSize(width: Number, height: Number) source

Sets the size of this object.

Params:

NameTypeAttributeDescription
width Number

The width.

height Number

The height.

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

this method was deprecated. Use setSize() instead.

Sets the texel size.

Params:

NameTypeAttributeDescription
x Number

The texel width.

y Number

The texel height.