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

14 lines (13 loc) 409 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>; }