Commit graph

128 commits

Author SHA1 Message Date
65a363712c Update readme
Some checks failed
Build & Deploy pages / build (push) Has been cancelled
2025-01-11 18:54:04 +02:00
b5d87a7d30 Enable alpha blending for plants 2025-01-11 18:54:04 +02:00
4203391783 Better ambient light estimation 2025-01-11 18:54:03 +02:00
47ebcf6fed Refactor gltf texture conversions 2025-01-11 18:54:03 +02:00
89c9b1e569 Cleaning up pbr shader 2025-01-11 18:54:03 +02:00
f9798743b8 Pass roughness & metalness factors to shader 2025-01-11 18:54:03 +02:00
8b99a617f4 Clean up constants in shaders 2025-01-11 18:54:03 +02:00
09e0feb4ff Tweak fog ambient 2025-01-11 18:54:03 +02:00
2d0ce913f9 Add some constant density to fog, remove blend for first steps 2025-01-11 18:54:03 +02:00
5497e8d6ce Add march from fog to light for occlusion 2025-01-11 18:54:03 +02:00
f4a7253922 Use sampled fog position for lighting instead of volume surface 2025-01-11 18:54:03 +02:00
37c3b63b14 Update readme 2025-01-11 18:54:03 +02:00
a76223b369 Update readme, new demo gif 2025-01-11 18:54:03 +02:00
857e32d994 Disable fog on wasm 2025-01-11 18:54:03 +02:00
fed16287c5 Clippy fixes 2025-01-11 18:54:03 +02:00
17fd7a5ec4 Refactor shadowmap sampling in shaders 2025-01-11 18:54:03 +02:00
90ba17a9a9 Include marched fog depth in light falloff 2025-01-11 18:54:03 +02:00
31c86644a7 Tweak fog params 2025-01-11 18:54:03 +02:00
c4ca8b9a04 Tweak light trajectory 2025-01-11 18:54:03 +02:00
496eabcb27 Tweak fog params 2025-01-11 18:54:03 +02:00
c0f41045da Fix fog scene depth comparison 2025-01-11 18:54:03 +02:00
3676f8fef5 Fix geometry depth binding not updating after resize, refactoring 2025-01-11 18:54:03 +02:00
7b752703ea Tweak fog light falloff & density 2025-01-11 18:54:03 +02:00
1c0b9aa63f Basic fog lighting, refactoring 2025-01-11 18:54:03 +02:00
5a8dec8d02 WIP: don't draw fog past scene depth 2025-01-11 18:54:03 +02:00
9acbec9a6a Add raymarched fog 2025-01-11 18:54:03 +02:00
ca9ed36c37 Add placeholder fog volume 2025-01-11 18:54:03 +02:00
4b03671a62 Refactor gltf mesh loading 2025-01-11 18:54:03 +02:00
cfd0c07ac6 Move material & mesh to separate files 2025-01-11 18:54:03 +02:00
90a2e2646a Default to fullscreen 2025-01-11 18:54:03 +02:00
9cac570eb6 Update readme 2025-01-11 18:54:03 +02:00
cf91d8e7fa Update readme 2025-01-11 18:54:03 +02:00
f7581d1905 Bump shadowmap size 1024 -> 2048 2025-01-11 18:54:03 +02:00
057240acc1 improve PCF 2025-01-11 18:54:03 +02:00
dab82367f0 refactoring 2025-01-11 18:54:03 +02:00
3729237e0e Add demo gif 2025-01-11 18:54:03 +02:00
ccaf9261cc Disable shadowmapping on WebGL 2025-01-11 18:54:02 +02:00
2616b2f5c9 Use textureSampleCompare instead of textureSampleCompareLevel 2025-01-11 18:54:02 +02:00
091bdcaa98 Fix wasm crashing on startup 2025-01-11 18:54:02 +02:00
7aa70cd564 100% size canvas, add loading text 2025-01-11 18:54:02 +02:00
60d0f64356 Fix needing extra device features for shadowmapping 2025-01-11 18:54:02 +02:00
139a568a6d Better light path + random colors 2025-01-11 18:54:02 +02:00
cd0a1cbd13 Fix flickering shadows 2025-01-11 18:54:02 +02:00
61e95cb550 Add soft shadows 2025-01-11 18:54:02 +02:00
6c9fd76c42 cleanup 2025-01-11 18:54:02 +02:00
5afa12a236 Fix shadowmap sampling outside of frustum 2025-01-11 18:54:02 +02:00
5e0001e2e1 Get light pos directly from matrices, debugging shadowmaps 2025-01-11 18:54:02 +02:00
2dc20ad12c Clippy fixes 2025-01-11 18:54:02 +02:00
ebef7fe1c5 Update packages 2025-01-11 18:54:02 +02:00
3cebdf3bfa update todo 2025-01-11 18:54:02 +02:00