toy project rendering 3D with math and shader, without a framework. named with "Triadica sebifera".
- Live Demo https://r.tiye.me/Quatrefoil-GL/triadica-space/
URL Parameters:
effects=on/offdev=release/devhide-tabs=true/falsetab=axis/lamps/...
- Docs https://github.com/triadica/guidebook/
- DevLog videos(Chinese)
- Artworks with Triadica
For example:
object $ {} (:draw-mode :lines)
:vertex-shader $ inline-shader "\"shape.vert"
:fragment-shader $ inline-shader "\"shape.frag"
:points $ map geo
fn (p)
-> p
map $ fn (i)
* i 40
&v+ $ [] 400 300 -1200
:indices indices
:hit-region $ {}
:position $ [] 400 300 -1200
:radius 20
:on-hit $ fn (e d!)
js/alert "\"hit on cube"
:on-mousedown $ fn (e d!)
:on-mousemove $ fn (e d!)
:on-mouseup $ fn (e d!):draw-modesupports:lines,:triangles,:line-strip*-shaderis a text of shader string:points:indices, optional, list of numbers:attributes, a list of points or floats:hit-region, enables click detection
- Project encouraged by https://github.com/doodlewind/beam
- Curly Ball demo inspired by https://twitter.com/scdollins/status/1531690190439215104
- Spin City demo inspired by https://twitter.com/MAKIO135/status/1525347172861939713
Core logics is based on twgl.js https://gist.github.com/tiye/d722a824d981a968da20be5fee7a4cb9 .
https://github.com/Triadica/triadica-workflow
MIT