import {OutlineBlendMaterial} from 'postprocessing/src/materials/OutlineBlendMaterial.js'
OutlineBlendMaterial
Extends:
An outline blend shader material.
Constructor Summary
Public Constructor | ||
public |
constructor(options: Object, alphaBlending: Boolean, xRay: Boolean) Constructs a new outline blend material. |
Member Summary
Public Members | ||
public |
|
Method Summary
Public Methods | ||
public |
setAlphaBlendingEnabled(enabled: Boolean) Enables or disables the alpha blending. |
|
public |
setPatternTexture(texture: Texture) Sets a pattern texture to use as overlay. |
|
public |
setXRayEnabled(enabled: Boolean) Defines whether hidden parts of selected objects should be visible. |
Public Constructors
public constructor(options: Object, alphaBlending: Boolean, xRay: Boolean) source
Constructs a new outline blend material.
Params:
Name | Type | Attribute | Description |
options | Object |
|
The options. |
options.edgeStrength | Number |
|
The edge strength. |
options.patternScale | Number |
|
The scale of the pattern texture. |
options.visibleEdgeColor | Number |
|
The color of visible edges. |
options.hiddenEdgeColor | Number |
|
The color of hidden edges. |
alphaBlending | Boolean |
|
Whether the outline should be blended using alpha. |
xRay | Boolean |
|
Whether hidden parts of selected objects should be visible. |
Public Methods
public setAlphaBlendingEnabled(enabled: Boolean) source
Enables or disables the alpha blending.
Params:
Name | Type | Attribute | Description |
enabled | Boolean | Whether the alpha blending should be enabled. |
public setPatternTexture(texture: Texture) source
Sets a pattern texture to use as overlay.
Params:
Name | Type | Attribute | Description |
texture | Texture |
|
A pattern texture. Set to null to disable the pattern. |