UNPKG

@mesmotronic/three-retropass

Version:

RetroPass applies a retro aesthetic to your Three.js project, emulating the visual style of classic 8-bit and 16-bit games

16 lines (15 loc) 493 B
import { IUniform } from 'three'; import * as THREE from 'three'; /** * Interface for shader uniforms used in RetroShader */ export interface RetroShaderUniforms { tDiffuse: IUniform<THREE.Texture | null>; resolution: IUniform<THREE.Vector2>; colorCount: IUniform<number>; colorTexture: IUniform<THREE.DataTexture>; dithering: IUniform<boolean>; ditheringOffset: IUniform<number>; quantizeEnabled: IUniform<boolean>; [uniform: string]: THREE.IUniform<any>; }