Class ScreenQuad

A fullsceen plane with which you can create fullscreen effects such as raymarching. By default, it has almost all the uniforms that shadertoy has: iTime, iResolution, iMouse, etc If you just want to run your shadertoy shader locally, you can turn on shadertoyMode, which will inject all the shadertoy uniforms into the fragment shader as well as main() function for three.js. Thus, you can just copy & paste your shadertoy shader and run!

Demo: https://kokomi-js.vercel.app/examples/#screenQuad

Hierarchy (view full)

Constructors

Properties

base: Base
container: Scene
emitter: Emitter<any>
material: ShaderMaterial
mesh: Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
uniformInjector: UniformInjector

Methods