Skip to content

Instantly share code, notes, and snippets.

@vasnakos
vasnakos / MeshReflectorMaterial.js
Created July 21, 2023 13:50 — forked from 0beqz/MeshReflectorMaterial.js
ES5 MeshReflectorMaterial.js
// original implementation is from https://github.com/pmndrs/drei
const {
DepthFormat, DepthTexture, LinearFilter, Matrix4, MeshStandardMaterial,
PerspectiveCamera, Plane, UnsignedShortType, Vector3, Vector4, WebGLRenderTarget
} = THREE
class MeshReflectorMaterial extends MeshStandardMaterial {
constructor(renderer, camera, scene, object, {
mixBlur = 0,