A Triforce with particles made in ThreeJS
A Pen by Alex Trost on CodePen.
A Triforce with particles made in ThreeJS
A Pen by Alex Trost on CodePen.
| <!-- https://github.com/halvves/shader-doodle --> | |
| <!-- https://www.osar.fr/notes/logspherical/ --> | |
| <shader-doodle> | |
| <script type="x-shader/x-fragment"> | |
| precision mediump float; | |
| #define MAX_STEPS 150. | |
| #define MAX_DIST 45. | |
| #define MIN_DIST .001 | |
| #define PI 3.14159 |
| <div id = 'general'> | |
| <div id = 'menu'> | |
| <div class="group"> | |
| <p>width (200-2000 pixels) : <input type = 'text' size=3 id ='tWidth' value="400"></p> | |
| <p>height (200-2000 pixels) : <input type = 'text' size=3 id ='tHeight' value="400"></p> | |
| <hr> | |
| <p>noise : </p> | |
| <p>period (0.05 - 20) : <input type = 'text' size=5 id ='period' value="0.5"></p> | |
| <p>octaves (0 - 5): <input type = 'text' size=3 id ='octaves' value="2"></p> | |
| <p>coeff. / octave (0.01 - 1) : <input type = 'text' size=3 id ='attenuation' value="0.2"></p> |