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

ShockWaveMaterial

Extends:

three~ShaderMaterial → ShockWaveMaterial

A shock wave shader material.

Based on a Gist by Jean-Philippe Sarda: https://gist.github.com/jpsarda/33cea67a9f2ecb0a0eda

Constructor Summary

Public Constructor
public

constructor(options: Object)

Constructs a new shock wave material.

Public Constructors

public constructor(options: Object) source

Constructs a new shock wave material.

Params:

NameTypeAttributeDescription
options Object
  • optional

The options.

options.waveSize Number
  • optional
  • default: 0.2

The wave size.

options.amplitude Number
  • optional
  • default: 0.05

The distortion amplitude.