惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
人人都是产品经理
人人都是产品经理
博客园_首页
爱范儿
爱范儿
博客园 - 叶小钗
aimingoo的专栏
aimingoo的专栏
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
Blog — PlanetScale
Blog — PlanetScale
博客园 - 【当耐特】
Y
Y Combinator Blog
量子位
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Blog of Author Tim Ferriss
月光博客
月光博客
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - ledhieu/imoss: Real-time raytraced-looking WebGL...
ldhieu · 2026-05-04 · via Hacker News: Show HN

Live demo: imoss.bio

demo-imoss.mp4

An interactive WebGL (Three.js) custom shader Marimo moss ball rendered with 500,000 moss strands. The best part? Looks Blender ray-traced, but running in real-time right in the browser. And interacts with physics. Built with Threlte (Svelte + Three.js).

Run locally

npm install
npm run dev

Open http://localhost:5173 and click the ball to interact.

Features

Rendering

  • 125,000–500,000 instanced moss blades via InstancedMesh with 6-segment tapered geometry
  • Custom GLSL vertex & fragment shaders — per-blade wind, clumping, length-preserving bend, gradient color, wrap-around lighting, subsurface glow, and distance fog
  • SMAA at 5× native scale — morphological edge anti-aliasing with local-contrast adaptation, running on a 5× super-sampled render target
  • Full-screen post-processing shader — barrel distortion, multi-tap chromatic aberration (outward blue-purple / inward warm-yellow), radial dreamy blur, depth fog, underwater desaturation, and SMAA-like morphological edge anti-aliasing with local-contrast adaptation and subpixel blending

Physics & Interaction

  • Cursor follow — ball smoothly tracks the mouse with exponential damping
  • Nudge impulse + spring recovery — click applies an impulse; a critically-damped spring (~3 s settle time) returns the ball to cursor position
  • Linear momentum & inertia — blades bend against velocity (air drag) and acceleration (inertia)
  • Torque-based spin — off-center clicks generate torque; the ball rolls like a wheel on a continuously-updated spin axis
  • Rolling spin decay — spin persists and damps after linear momentum ends
  • Per-blade spring physics — every blade has independent bend state/velocity (stiffness 1.0, damping 1.6) updated each frame on the CPU
  • Exposure-aware bending — blades on the trailing hemisphere bend more than the leading side
  • Tangential spin torque — rotation pushes blades tangentially, scaled by per-blade response variation, spatial spin pattern, and strand length
  • Random rest offsets — each blade has a unique rest lean so strands never converge to an X-shape

Generation & Clumping

  • Flow-field clumping — 3D noise drives primary sweeping curves + nested secondary detail across the sphere surface
  • Position jitter inside clumps — blades within locks are slightly raised for organic volume
  • Equator-height bias — blades are taller near the equator, shorter at the poles
  • Long stray strands — ~0.1 % of blades are 2–4× length with proportional thinning and brightness boost
  • Shader clumping boost — speed and spin dynamically increase chaotic lock strength in the vertex shader

Realism Gimmicks

  • Top-down key + back light + negative front fill — a hardcoded top spotlight and warm amber backlight create a backlit silhouette; the front is artificially darkened to mimic real-life backlit moss
  • Root-to-tip dark gradient — base color near the root fades into a brighter tip color, mimicking real moss strand density
  • Baked-in subsurface glow — bright, warm edge glow applied at high light levels to simulate light scattering through thin moss blades
  • Light-driven color grading — heavy desaturation in shadow, yellow-gold in mid-bright, amber in strong backlight

Controls

  • lil-gui control panel — live adjust blade count, strand length, clump strength, and algae color shift

Files

src/
├── components/
│   ├── MossBall.svelte         # Core physics + rendering component
│   └── MossBallScene.svelte    # Scene wrapper with camera & lights
└── shaders/
    ├── mossball.vert            # Vertex shader
    └── mossball.frag            # Fragment shader

Dependencies

Author

Created by Hieu Le
Creative Developer & Full-Stack Engineer
leduchieu.com

Attribution

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

You are free to:

  • Share — copy and redistribute the material in any medium or format
  • Adapt — remix, transform, and build upon the material

Under the following terms:

  • Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • NonCommercial — You may not use the material for commercial purposes.

License

Creative Commons Attribution-NonCommercial 4.0 International