Skip to content

markuslerner/spiral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spiral Shader Experiment

JavaScript spiral fragment shader experiment in THREE.js

Demo (Photosensitive epilepsy warning)

Variables

  • speed – speed at which the spiral rotates.
  • scale – scale of the spiral.
  • warp – intensity of the warp based on an exponential easing function.
  • exponent – exponent to use for drawing the spiral.
  • sharpness – edge sharpness of the spiral spiral.
  • color* – colors of the spiral.

Used libraries

  • THREE.js – JavaScript 3D library
  • stats.js – JavaScript Performance Monitor
  • dat.gui – lightweight controller library
  • anime – JavaScript animation engine

Based on

License

MIT licensed

Copyright (C) 2020 Markus Lerner, http://www.markuslerner.com