Skip to content

Studio-Elsewhere/Full-Screen-Shader-Threejs

 
 

Repository files navigation

three-vite-tweakpane-shader-template

A template to quickly prototype full-screen shaders with UI using Tweakpane, Three.js and Vite 🎉

Live Demo

image

Features

  • Define your uniforms 1 time in state.js and use them in both the shader and the UI without needing to update them in your render loop.

  • Easily add UI for your uniforms in ui.js.

  • Uses a single triangle to render the shader to the screen for optimization instead of a Quad.

  • There's a nifty helper function createMeshWithUniforms that handles updating all your uniforms from your state every frame so you don't need to update them in your render loop.

Setup

yarn install

Dev

yarn dev

Build

yarn build

About

A template to quickly prototype full-screen shaders with UI using Tweakpane, Three.js and Vite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.3%
  • GLSL 28.2%
  • HTML 4.5%
  • CSS 4.0%