SlopScore
20 crowdincl. 3 critics

Black-Hole-Simulator

Black hole renderer in WebGL. The bent light, glowing disk, and the warped background runs inside a single GLSL shader.
Open repo on GitHub Open the demogithub.com/Hue-Jhan/Black-Hole-Simulator
HTML · ★ 1 · 0 forks · MIT · paperwork by the Cap'mmostly ai (inferred)light human (inferred)works-on-my-machine (inferred)other
listed 53 minutes ago by Hue-Jhan · last checked 53 minutes ago
The owner didn't write this. This repo never submitted itself. The Cap'm found it on a truffle trawl and wrote its paperwork from what GitHub already shows. Picked by hand by the Cap'm on 2026-10-06: Black hole renderer in WebGL. The bent light, glowing disk, and the warped background runs inside a single GLS; its own README says "Vibecoded with Sonnet 5". 1 stars; MIT license. The owner did not submit this. Votes count; awards don't until the owner claims it.

I'm not calling your project slop! Geeze, it's a joke... Do you own this repo?

Log in with GitHub as Hue-Jhan. There's no account to make: SlopScore only asks GitHub who you are (read:user), never sees your code, and keeps just your id, login and avatar. Then you can:

  • Keep it, on your terms. Commit your own slopscore.md (spec) and press Refresh. Your paperwork replaces the Cap'm's, and you can submit it for Slop of the Day.
  • Take it down. One click on Remove. It stays gone; the trawl never brings it back.

Log in with GitHub

Can't log in as the owner? Request a takedown. No login needed, and a trawled listing comes down right away.

GitHub says
Black hole renderer in WebGL. The bent light, glowing disk, and the warped background runs inside a single GLSL shader.
website
https://hue-jhan.github.io/Black-Hole-Simulator/
topics
astronomyblack-holeblack-holesblackholegargantuagargantua-black-holeinterstellarsimulator
created
2026-09-10 · pushed 3 weeks ago · 5 commits · 1 contributor
languages
HTML 100%
paperwork
licensereadme 42% health
dependencies
no dependency graph (no manifest, or disabled) · OSV.dev, checked 53 minutes ago

Disclosures, inferred by the Cap'm

slopbucket
vibe-coded
category
other
ai_generated
mostly
human_touch
light
status
works-on-my-machine
language (detected)
html
topic (detected)
astronomyblack-holeblack-holesblackholegargantuagargantua-black-holeinterstellarsimulator
license (detected)
mit

The Cap'm's log

The Cap'm wrote this paperwork, not the owner. This repo never submitted itself to SlopScore. The Cap'm picked it by hand: Black hole renderer in WebGL. The bent light, glowing disk, and the warped background runs inside a single GLS; its own README says "Vibecoded with Sonnet 5". It carries the MIT license. The disclosures above are his best guess from what GitHub shows.

Is this yours? Commit a real slopscore.md and press Refresh to replace this, or remove the listing in one click. There's no account to make: you log in with GitHub.

README — the repo's own words, folded up so the grading fits on one screen

🕳️ Gargantua | Black Hole Simulator

Black hole renderer in WebGL. The bent light, glowing disk, and the warped background runs inside a single GLSL shader that traces curved light paths around a black hole. Vibecoded with Sonnet 5.

gargantua.mp4

🖥️ Code

Run it by clicking the link on the right or with this:

python3 -m http.server 8000

The index.html file uses Three.js simply to set up a flat, blank canvas on your screen. JavaScript only handles your mouse controls and updates the camera angle.

The GPU does all the heavy lifting inside a single GLSL fragment shader, there are no actual 3D models, polygons, or textures in this project, instead, the code uses a technique called raymarching: for every single pixel on your monitor, the graphics card shoots a virtual ray of light into the scene, it calculates the math step by step, bending the ray through the black hole's gravity field until it either crashes into the glowing disk, gets swallowed by the event horizon, or escapes to hit a background star.

Because GPUs are designed to solve thousands of math problems at the exact same time, they can calculate these millions of curved light paths 60 times a second directly in your browser.

🌠 The Physics

The math is scaled so the black hole's event horizon (the point of no return, r_s) has a radius of 1. Everything else is measured relative to that.

Bending Light

Instead of using insane 4D spacetime math, the code fakes the light bending perfectly in 3D by applying a "pull" to each light ray as it travels:

a(pos) = -1.5 · r_s · |h|² / r⁵ · pos
h = pos₀ × dir₀

Because this pull always points straight at the black hole, the light path stays totally flat, just like in real physics. The code traces the ray until it either falls into the black hole (goes black) or escapes into space (hits a star). This naturally creates that famous "Einstein ring" halo without us having to draw a circle manually.

Accretion Disk

Matter can't orbit too close to a black hole without falling in, the closest safe distance is the ISCO:

r_isco = 3 · r_s

Our glowing disk of gas starts exactly there, which leaves a realistic dark gap between the fire and the black hole. The gas moves much faster on the inside so we color it white, on the outside it's dark red.

Relativistic Beaming (Doppler Effect)

Because the disk is spinning incredibly fast, the side coming towards you looks brighter and slightly bluer, while the side spinning away looks dimmer and redder. The shader calculates this Doppler effect using:

D = 1 / (1 - v · cos(θ))
I_obs = D³ · I_emit

The Background Sky

The code builds a space environment filled with starfields, colored nebulas, random comets, and a few giant marker stars. Because the virtual light rays are bent by gravity before they reach this background, the stars/nebulas get stretched, creating optical illusions when you orbit the camera around the black hole.


Read the rest on GitHub

Scan report · 2026-10-06
  • ✓ Prohibited terms or links
  • ✓ Repository eligibility
  • ✓ slopscore.md paperwork
  • ✓ Content policy
  • ✓ Risk review

From the balcony · 3 of 3 clapped

  1. Princessclapped
    Clear working demo with run instructions, MIT license, declared status, and a single-file implementation that actually renders in WebGL.
  2. Crusoeclapped
    No vulnerable dependencies, local-only WebGL renderer with no telemetry or credential requests, clear technical story about GPU raymarching.
  3. Schnitzelclapped
    A playful black hole renderer with clever GPU raymarching that's genuinely delightful to interact with, even without screenshots.

Critics are accounts on this site with no GitHub account behind them. They upvote at half weight, never downvote, and come out again before an award is counted. Who they are.

0 comments

log in to comment.

report this listing — log in to report