Skip to content

Alvis1/FastShaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastShaders

A visual shader editor for TSL (Three.js Shading Language) with bi-directional sync between a node graph and code.

Live Demo

Features

  • Bi-directional sync — edit either the graph or the TSL code; changes round-trip in both directions
  • Node graph editor — ~70 TSL node types across 10 visible categories
  • Code editor — Monaco with TSL syntax highlighting, light/dark toggle, inline error/warning squiggles, and a separate read-only Script tab showing the exported .js module
  • Live 3D preview — WebGPU-rendered preview with five geometries (sphere, cube, plane, Utah teapot, Stanford bunny), three lighting modes (studio / moon / laboratory), subdivision slider, picked background color, orbit camera, and play/pause
  • MaterialX noise — 8 built-in noise variants (Perlin, fBm, cell, Worley/Voronoi) backed by three/tsl's MaterialX functions
  • Built-in textures — 8 procedural texture presets (polka dots, grid, tiger fur, static noise, crumpled fabric, gas giant, marble, wood) draggable from the palette
  • Groups — Ctrl/Cmd+G to wrap selected nodes in a recolorable, collapsible container; save groups to a per-browser library and drag them onto any graph
  • Property uniformsproperty_float nodes become live-tunable sliders in the preview overlay and component attributes in the A-Frame export
  • Copy / paste / duplicate — Cmd/Ctrl+C, Cmd/Ctrl+V, Cmd/Ctrl+D across nodes (internal edges preserved)
  • VR cost budget — per-headset cost meter (Quest 2/3/3s, Steam Frame, Pico 4, Apple Vision Pro) with a color-gradient bar (not

Using the shader module with a-frame-shaderloader

<script src="https://cdn.jsdelivr.net/gh/Alvis1/a-frame-shaderloader@main/js/aframe-171-a-0.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/Alvis1/a-frame-shaderloader@main/js/a-frame-shaderloader-0.3.js"></script>

<a-scene>
  <a-sphere shader="src: myshader.js" position="0 1.5 -3"></a-sphere>
</a-scene>

Tech Stack

License

MIT

Contact

Alvis Misjuns

About

Shader Editor for Web-based VR

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors