MCPcopy Create free account

hub / github.com/dgreenheck/webgpu-black-hole / functions

Functions45 in github.com/dgreenheck/webgpu-black-hole

↓ 6 callersFunctioncatmullRom
* Catmull-Rom spline interpolation for smooth continuous curves. * Unlike per-segment easing, this creates fluid motion without pauses at waypoints.
camera-animation.js:14
↓ 4 callersMethodgetKeyframe
* Get keyframe by index with wrapping for seamless looping
camera-animation.js:83
↓ 4 callersMethodshowNotification
* Show a temporary notification message.
ui.js:113
↓ 3 callersMethodupdate
* Main update method - called each frame.
blackhole.js:224
↓ 3 callersMethodupdateUniforms
* Update uniform values from config object. * Called when UI controls change.
blackhole.js:150
↓ 2 callersMethodcreateBlackHole
* Create the black hole visualization mesh. * Uses a large inverted sphere as the render surface with a custom TSL shader.
blackhole.js:113
↓ 2 callersFunctiongetBlackbodyColor
(tempK)
blackhole-shader.js:126
↓ 2 callersFunctionnormalizeColorToHex
* Convert a color value to hex string. * Handles Tweakpane's color object format {r, g, b} or hex strings.
main.js:34
↓ 1 callersFunctionanimate
()
main.js:359
↓ 1 callersMethodcalculateTotalDuration
* Calculate the total duration of all keyframes
camera-animation.js:76
↓ 1 callersFunctionclearConfig
* Clear configuration from localStorage.
main.js:94
↓ 1 callersFunctioncreateAccretionDiskColor
(uniforms)
blackhole-shader.js:239
↓ 1 callersFunctioncreateBlackHoleShader
(uniforms)
blackhole-shader.js:304
↓ 1 callersFunctioncreateNebulaField
(uniforms)
blackhole-shader.js:224
↓ 1 callersMethodcreateRaymarchingShader
* Main shader creation method. * Builds the complete raymarching shader using Three.js TSL.
blackhole.js:138
↓ 1 callersFunctioncreateStarField
(uniforms)
blackhole-shader.js:195
↓ 1 callersMethodgetKeyframeInfo
* Get the current keyframe index and local time within that keyframe
camera-animation.js:135
↓ 1 callersMethodinitializeUniforms
* Initialize all shader uniforms with default values. * These can be updated in real-time via the UI.
blackhole.js:40
↓ 1 callersMethodinterpolateSpline
* Interpolate using Catmull-Rom spline for smooth continuous motion
camera-animation.js:162
↓ 1 callersFunctionloadConfig
* Load configuration from localStorage, merging with defaults.
main.js:51
↓ 1 callersMethodonResize
* Handle window resize.
blackhole.js:232
↓ 1 callersMethodregenerate
* Regenerate the black hole mesh (e.g., after config changes).
blackhole.js:239
↓ 1 callersFunctionsaveConfig
* Save current configuration to localStorage. * Normalizes color values to hex strings before saving.
main.js:75
↓ 1 callersMethodsetBloomNode
(bloomNode)
ui.js:525
↓ 1 callersMethodsetupBlackHoleFolder
()
ui.js:160
↓ 1 callersFunctionsetupBloom
()
main.js:249
↓ 1 callersMethodsetupBloomFolder
()
ui.js:485
↓ 1 callersMethodsetupCameraFolder
()
ui.js:35
↓ 1 callersMethodsetupConfigFolder
()
ui.js:71
↓ 1 callersMethodsetupNebulaFolder
()
ui.js:390
↓ 1 callersMethodsetupPerformanceFolder
()
ui.js:146
↓ 1 callersMethodsetupStarsFolder
()
ui.js:340
↓ 1 callersMethodsetupUI
()
ui.js:21
↓ 1 callersMethodstart
* Start the camera animation
camera-animation.js:91
↓ 1 callersMethodstop
* Stop the camera animation and restore controls
camera-animation.js:108
↓ 1 callersMethodtoggle
* Toggle animation on/off
camera-animation.js:123
↓ 1 callersMethodupdateCamera
* Update camera position uniform from Three.js camera.
blackhole.js:211
↓ 1 callersFunctionupdateFPS
()
main.js:334
↓ 1 callersMethodupdateFPS
(fps)
ui.js:520
Methodconstructor
(camera, controls)
camera-animation.js:54
Methodconstructor
(config, callbacks)
ui.js:11
Methodconstructor
(scene, config)
blackhole.js:29
MethodgetProgress
* Get current animation progress (0-1)
camera-animation.js:217
Methodplaying
* Check if animation is currently playing
camera-animation.js:224
Methodupdate
* Update the animation (call every frame) * @param {number} deltaTime - Time since last frame in seconds
camera-animation.js:188