import {PixelationEffect} from 'postprocessing/src/effects/PixelationEffect.js'
PixelationEffect
Extends:
Indirect Implements:
A pixelation effect.
Warning: This effect cannot be merged with convolution effects.
Constructor Summary
Public Constructor | ||
public |
constructor(granularity: Object) Constructs a new pixelation effect. |
Member Summary
Private Members | ||
private |
The pixel granularity. |
|
private |
resolution: Vector2 The original resolution. |
Method Summary
Public Methods | ||
public |
Returns the pixel granularity. |
|
public |
setGranularity(granularity: Number) Sets the pixel granularity. |
|
public |
Updates the granularity. |
Inherited Summary
From class Effect | ||
public |
[key]: * |
|
public |
The effect attributes. |
|
public |
The blend mode of this effect. |
|
public |
Preprocessor macro definitions. |
|
public |
The fragment shader. |
|
public |
The name of this effect. |
|
public |
Shader uniforms. |
|
public |
The vertex shader. |
|
public |
dispose() Performs a shallow search for properties that define a dispose method and deletes them. |
|
public |
initialize(renderer: WebGLRenderer, alpha: Boolean) Performs initialization tasks. |
|
public |
setDepthTexture(depthTexture: Texture, depthPacking: Number) Sets the depth texture. |
|
public |
Updates the size of this effect. |
|
public |
Updates the effect by performing supporting operations. |
Public Constructors
public constructor(granularity: Object) source
Constructs a new pixelation effect.
Override:
Effect#constructorParams:
Name | Type | Attribute | Description |
granularity | Object |
|
The pixel granularity. |