-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colored flood fill lighting #428
base: 1.20
Are you sure you want to change the base?
Commits on Jun 2, 2023
-
Working light propagation and data storage
Light removal is still somewhat broken and sometimes cause lingering light data
Configuration menu - View commit details
-
Copy full SHA for 59405b7 - Browse repository at this point
Copy the full SHA 59405b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e890130 - Browse repository at this point
Copy the full SHA e890130View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fdac19 - Browse repository at this point
Copy the full SHA 0fdac19View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47e53d5 - Browse repository at this point
Copy the full SHA 47e53d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9582811 - Browse repository at this point
Copy the full SHA 9582811View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa9d2ea - Browse repository at this point
Copy the full SHA fa9d2eaView commit details -
- Enqueue only occlusion change - Compare based on pure light - Skip empty queue (don't upload)
Configuration menu - View commit details
-
Copy full SHA for ee28df8 - Browse repository at this point
Copy the full SHA ee28df8View commit details
Commits on Jun 3, 2023
-
Prevent propagating in the opposite direction
Except for light sources which propagate in every direction. Bright nodes found while looping through light removal (decrease) queue are treated as light sources.
Configuration menu - View commit details
-
Copy full SHA for 0fac619 - Browse repository at this point
Copy the full SHA 0fac619View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2499b0d - Browse repository at this point
Copy the full SHA 2499b0dView commit details
Commits on Jun 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6703cb7 - Browse repository at this point
Copy the full SHA 6703cb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73096f7 - Browse repository at this point
Copy the full SHA 73096f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3853ba6 - Browse repository at this point
Copy the full SHA 3853ba6View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2e3503 - Browse repository at this point
Copy the full SHA f2e3503View commit details -
Propagate to neighboring chunks, do updates in render thread
- Fix light source restoration; was blocked by occlusion check
Configuration menu - View commit details
-
Copy full SHA for 6a9dc23 - Browse repository at this point
Copy the full SHA 6a9dc23View commit details
Commits on Jun 5, 2023
-
Loop through every regions within extent for update
Don't use queue since we already have per region queue
Configuration menu - View commit details
-
Copy full SHA for f38b99b - Browse repository at this point
Copy the full SHA f38b99bView commit details -
Propagate chunk edge lights for new regions
Add froglight colors Rename light data texture to "canvas:alpha/light_data" Cleanup cruft
Configuration menu - View commit details
-
Copy full SHA for b597751 - Browse repository at this point
Copy the full SHA b597751View commit details
Commits on Jun 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7875071 - Browse repository at this point
Copy the full SHA 7875071View commit details
Commits on Jun 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4c16822 - Browse repository at this point
Copy the full SHA 4c16822View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4a26cd - Browse repository at this point
Copy the full SHA b4a26cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e976c9 - Browse repository at this point
Copy the full SHA 0e976c9View commit details
Commits on Jun 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d3a974f - Browse repository at this point
Copy the full SHA d3a974fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b06e315 - Browse repository at this point
Copy the full SHA b06e315View commit details
Commits on Jun 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f1370ba - Browse repository at this point
Copy the full SHA f1370baView commit details -
Fix fluid occlusion value, refactor
- API registry only holds pure RGB - Always cache all light - Restructure and separate "API" from internal code
Configuration menu - View commit details
-
Copy full SHA for 8106230 - Browse repository at this point
Copy the full SHA 8106230View commit details -
Configuration menu - View commit details
-
Copy full SHA for b130eaa - Browse repository at this point
Copy the full SHA b130eaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc30e9d - Browse repository at this point
Copy the full SHA cc30e9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 996468b - Browse repository at this point
Copy the full SHA 996468bView commit details
Commits on Jun 10, 2023
-
Keep doing decrease until it's done
- Remove decrease self occlusion check completely, Occluding blocks should be able to propagate decrease outwards after all. - Add more filtering for increase queuing - Some simplifications
Configuration menu - View commit details
-
Copy full SHA for 2ae11a1 - Browse repository at this point
Copy the full SHA 2ae11a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3051e47 - Browse repository at this point
Copy the full SHA 3051e47View commit details
Commits on Jun 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1cc7e37 - Browse repository at this point
Copy the full SHA 1cc7e37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9166f31 - Browse repository at this point
Copy the full SHA 9166f31View commit details
Commits on Jun 29, 2023
-
Properly reload regions on pipeline selection
This is done by fully parsing pipeline description, which impacts resource reload time.
Configuration menu - View commit details
-
Copy full SHA for b346b27 - Browse repository at this point
Copy the full SHA b346b27View commit details -
Configuration menu - View commit details
-
Copy full SHA for d66c739 - Browse repository at this point
Copy the full SHA d66c739View commit details -
Rename "light volume" to "colored lights"
This feature is more than just providing light volume, since we also do propagation and manage the custom light color registry. And ultimately the goal is to add colored lights. Voxel tracing, LPV, and other light volume related aspects would count as separate or spin-off projects.
Configuration menu - View commit details
-
Copy full SHA for 6ea5ea0 - Browse repository at this point
Copy the full SHA 6ea5ea0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7dd044 - Browse repository at this point
Copy the full SHA d7dd044View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4aea58e - Browse repository at this point
Copy the full SHA 4aea58eView commit details
Commits on Jul 1, 2023
-
Add shader API, consolidate LightOp
- Built-in selective neighbor filtering - Move decrease and increase operations to LightOp - Do multiple loop for increase too
Configuration menu - View commit details
-
Copy full SHA for 51afa24 - Browse repository at this point
Copy the full SHA 51afa24View commit details
Commits on Jul 3, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0b02b8c - Browse repository at this point
Copy the full SHA 0b02b8cView commit details
Commits on Jul 12, 2023
-
Improve / fix complex light sampling around the edges
It's a tad more complex This also includes "fix" for a bug that was discovered after sampling was improved. The bug remains, this only reduces the frequency (pretty much "edge case" for now).
Configuration menu - View commit details
-
Copy full SHA for a033f2d - Browse repository at this point
Copy the full SHA a033f2dView commit details -
Lazy region buffer allocation; test sparse allocator
Additionally: respect useOcclusionData for sparse allocation
Configuration menu - View commit details
-
Copy full SHA for 34978e0 - Browse repository at this point
Copy the full SHA 34978e0View commit details -
Implement working sparse allocation
- Light texture consists of: pointer-meta header, pointer storage, and data storage - Generates new texture when the storage (data or pointer) is doubled - Sampler bindings are now `int` suppliers to account for changing light texture ID - Pipeline declares occlusion data usage as it impacts number of allocation Possibly temporary: - Pipeline declares active radius for light execution. This won't be necessary if light execution is actually scalable - Reclaimable addresses are stored in an array-backed stack. This might be slow - Pointer-meta header might be moved to uniforms for simplicity NOT (yet) implemented: - Built-in light sampler for material programs - Prevent pipeline stalling by writing to a swap buffer - Proper registry for built-in textures available to use by program passes
Configuration menu - View commit details
-
Copy full SHA for 9bc0044 - Browse repository at this point
Copy the full SHA 9bc0044View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9507420 - Browse repository at this point
Copy the full SHA 9507420View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5388f2f - Browse repository at this point
Copy the full SHA 5388f2fView commit details
Commits on Jul 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6058c58 - Browse repository at this point
Copy the full SHA 6058c58View commit details -
Deprecate light update extent; use Set-based queue
Should have been done earlier: - Remove notions of extent-origin and redrawing when origin was moved - Redraw every allocated regions on texture remake instead of the above Experimentally: - Iterate through queue using native malloc "array" (slightly faster than regular array) Additionally: - Checkstyle fixes
Configuration menu - View commit details
-
Copy full SHA for 56c0835 - Browse repository at this point
Copy the full SHA 56c0835View commit details -
Merge pull request #1 from spiralhalo/light-prism-sparse
Colored lights sparse allocation
Configuration menu - View commit details
-
Copy full SHA for cdc0341 - Browse repository at this point
Copy the full SHA cdc0341View commit details -
Implement built-in sampler; Demo in abstract pipeline
- Minor style change
Configuration menu - View commit details
-
Copy full SHA for 967f264 - Browse repository at this point
Copy the full SHA 967f264View commit details
Commits on Jul 23, 2023
-
Block Light API defaults/examples
Some light levels are adjusted to account for perceived luminance. Note that this is inaccurate.
Configuration menu - View commit details
-
Copy full SHA for bbfea2f - Browse repository at this point
Copy the full SHA bbfea2fView commit details
Commits on Jul 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b5a52f7 - Browse repository at this point
Copy the full SHA b5a52f7View commit details
Commits on Dec 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for beadb2b - Browse repository at this point
Copy the full SHA beadb2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b5cdbf3 - Browse repository at this point
Copy the full SHA b5cdbf3View commit details -
Configuration menu - View commit details
-
Copy full SHA for eced5f6 - Browse repository at this point
Copy the full SHA eced5f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa9b355 - Browse repository at this point
Copy the full SHA aa9b355View commit details
Commits on Dec 28, 2023
-
Try small optimize and add comments about redundancy, fix concurrency…
… issue Note: simple deque is faster than Set, likely takes more memory
Configuration menu - View commit details
-
Copy full SHA for 3d2fdef - Browse repository at this point
Copy the full SHA 3d2fdefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9543aaa - Browse repository at this point
Copy the full SHA 9543aaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 364099d - Browse repository at this point
Copy the full SHA 364099dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 927fa38 - Browse repository at this point
Copy the full SHA 927fa38View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7a29aa - Browse repository at this point
Copy the full SHA e7a29aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 453c8b3 - Browse repository at this point
Copy the full SHA 453c8b3View commit details
Commits on Dec 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 462c059 - Browse repository at this point
Copy the full SHA 462c059View commit details -
Robust reload on pipeline state change
- Revert LightDataManager.reload() change from 2 days ago
Configuration menu - View commit details
-
Copy full SHA for 606765f - Browse repository at this point
Copy the full SHA 606765fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 413764d - Browse repository at this point
Copy the full SHA 413764dView commit details
Commits on Dec 31, 2023
-
Fix 1-tick emitter replacement (fire to nether portal)
- Shorten profiler output
Configuration menu - View commit details
-
Copy full SHA for f2f338c - Browse repository at this point
Copy the full SHA f2f338cView commit details
Commits on Jan 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for eb009dd - Browse repository at this point
Copy the full SHA eb009ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa8363d - Browse repository at this point
Copy the full SHA fa8363dView commit details
Commits on Jan 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 96ae964 - Browse repository at this point
Copy the full SHA 96ae964View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73ff9a1 - Browse repository at this point
Copy the full SHA 73ff9a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56c8a63 - Browse repository at this point
Copy the full SHA 56c8a63View commit details
Commits on Jan 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1c120b7 - Browse repository at this point
Copy the full SHA 1c120b7View commit details
Commits on Jan 7, 2024
-
Implement item-based virtual lighting for entity held light and item …
…entity - Rename VirtualLightManager to LightLevel - Make item light encoding consistent in LightRegistry and everywhere - Reformat
Configuration menu - View commit details
-
Copy full SHA for bf97937 - Browse repository at this point
Copy the full SHA bf97937View commit details -
Configuration menu - View commit details
-
Copy full SHA for cde4831 - Browse repository at this point
Copy the full SHA cde4831View commit details -
Entity JSON light loader, refactor CachedBlockLight
- Entity JSON light is a simple light without predicate - CachedBlockLight -> FloodFillBlockLight, make all values consistent - `blaze` and `glow_squid` light in canvas/default resource pack - EntityLightProvider API (unused for now)
Configuration menu - View commit details
-
Copy full SHA for f5f78da - Browse repository at this point
Copy the full SHA f5f78daView commit details
Commits on Jan 8, 2024
-
Let pipeline disallow virtual lights, more robust reload
- More robust LightLevel and EntityLightTracker reload - More robust CanvasState requireReload
Configuration menu - View commit details
-
Copy full SHA for bf67085 - Browse repository at this point
Copy the full SHA bf67085View commit details -
Configuration menu - View commit details
-
Copy full SHA for f59115c - Browse repository at this point
Copy the full SHA f59115cView commit details -
Clamp item light intensity when converting to block light
Our flood fill-based model doesn't support HDR, so it's better to preserve the color hue instead of clipping to white on high intensity.
Configuration menu - View commit details
-
Copy full SHA for 4afb98b - Browse repository at this point
Copy the full SHA 4afb98bView commit details
Commits on Jan 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4cae0d2 - Browse repository at this point
Copy the full SHA 4cae0d2View commit details