Skip to content

Instantly share code, notes, and snippets.

@artemuzz
artemuzz / 3d-triforce-with-threejs.markdown
Created April 29, 2020 14:12
3D Triforce with ThreeJS
@artemuzz
artemuzz / index.html
Created April 21, 2020 13:36
Mechanic Polar Dream
<!-- 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
@artemuzz
artemuzz / index.html
Created October 27, 2019 03:09
simplex noise and color map
<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>