Skip to content

Instantly share code, notes, and snippets.

@charlieroberts
Created March 3, 2020 23:39
Show Gist options
  • Save charlieroberts/132fd36534a041bc314b01dcee792f13 to your computer and use it in GitHub Desktop.
Save charlieroberts/132fd36534a041bc314b01dcee792f13 to your computer and use it in GitHub Desktop.
mirrored julias
// copy and paste into https://charlieroberts.github.io/marching/playground/
// select all and hit ctrl+enter
march(
ru = RoundUnion(
m2 = Mirror(
m1 = Mirror(
m = Mirror(
j = Julia( 3.5 )
.translate( .25,.25,.75 )
.material('glue')
)
),
),
Plane( Vec3(0,0,1), .5 ).material('glue'),
.5
)
)
.fog(.125, Vec3(0) )
.render('fractal.high')
.camera( 0,0,3.5 )
t = 50
onframe = () => {
t+=.015
m.rotate(t*5,1,1,0)
m1.rotate(t*4,0,1,0)
m2.rotate(t*3,1,0,0)
}
//j.translate(0,0,-1.5)
//fade('j', 'transform.translation.z', -1.5, 10 )
@charlieroberts
Copy link
Author

Change the quality to 'fractal.low' in the call to .render() if you don't have a fancy graphics card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment