Skip to content

Puschkarew/digital-liquid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebGL Fluid Simulation (Pinned Copy)

This repository now runs a pinned copy of PavelDoGreat/WebGL-Fluid-Simulation, based on commit:

  • a2d292931f19d9b3b9f564e23e6c32729d2121c3

The runtime is app-only (no library API). It uses the original simulation logic and the original dat.GUI control set.

What Is Included

  • script.js from upstream (with only minimal removals listed below)
  • dat.gui.min.js from upstream
  • LDR_LLL1_0.png from upstream
  • assets/paper-sample-0018.webp (Paper sample image for halftone comparisons)
  • Fullscreen canvas entrypoint (index.html)

Intentional Removals From Upstream

  • Promo popup and related assets/handlers
  • External social/app buttons in GUI
  • Google Analytics snippets and ga(...) calls

These removals do not change fluid simulation parameters, solver flow, keyboard controls, or GUI fluid settings.

Controls

  • P: toggle pause (PAUSED)
  • Space: random splats
  • GUI controls include:
    • DYE_RESOLUTION, SIM_RESOLUTION
    • DENSITY_DISSIPATION, VELOCITY_DISSIPATION, PRESSURE, CURL, SPLAT_RADIUS
    • SHADING, COLORFUL, PAUSED
    • Bloom folder (BLOOM, BLOOM_INTENSITY, BLOOM_THRESHOLD)
    • Sunrays folder (SUNRAYS, SUNRAYS_WEIGHT)
    • Halftone folder:
      • enabled
      • source (fluid, sample)
      • preset (Custom, Default, LED screen, Mosaic, Round and square)
      • colorBack, colorFront
      • originalColors, type, inverted, grid
      • size, radius, contrast
      • grainMixer, grainOverlay, grainSize
      • scale, fit
      • legacy aliases (HALFTONE_*) still map to new keys for backward compatibility
    • ASCII folder:
      • enabled
      • mode (mono, color)
      • depth (2..16)
      • chars, inverted, size
      • foreground, background
    • Capture folder (BACK_COLOR, TRANSPARENT, screenshot)

ASCII and Halftone are mutually exclusive: enabling one disables the other. Capture keeps exporting the raw fluid render (without ASCII/halftone passes). source=sample uses assets/paper-sample-0018.webp for direct visual comparison with the Paper reference.

Scripts

npm install
npm run dev
npm run build
npm run preview

About

Digital liquid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages