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

OutlineMaterial

Extends:

three~ShaderMaterial → OutlineMaterial

An outline shader material.

Constructor Summary

Public Constructor
public

constructor(texelSize: Vector2)

Constructs a new outline material.

Method Summary

Public Methods
public

Sets the texel size.

Public Constructors

public constructor(texelSize: Vector2) source

Constructs a new outline material.

Params:

NameTypeAttributeDescription
texelSize Vector2
  • optional

The 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.