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

SMAAWeightsMaterial

Extends:

three~ShaderMaterial → SMAAWeightsMaterial

Subpixel Morphological Antialiasing.

This material computes weights for detected edges.

Constructor Summary

Public Constructor
public

constructor(texelSize: Vector2)

Constructs a new SMAA weights material.

Member Summary

Public Members
public

Method Summary

Public Methods
public

Sets the maximum amount of steps performed in the horizontal/vertical pattern searches, at each side of the pixel.

Public Constructors

public constructor(texelSize: Vector2) source

Constructs a new SMAA weights material.

Params:

NameTypeAttributeDescription
texelSize Vector2
  • optional

The absolute screen texel size.

Public Members

public needsUpdate: boolean source

Public Methods

public setOrthogonalSearchSteps(steps: Number) source

Sets the maximum amount of steps performed in the horizontal/vertical pattern searches, at each side of the pixel.

In number of pixels, it's actually the double. So the maximum line length perfectly handled by, for example 16, is 64 (perfectly means that longer lines won't look as good, but are still antialiased).

Params:

NameTypeAttributeDescription
steps Number

The search steps. Range: [0, 112].