-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
387 changed files
with
11,101 additions
and
6,033 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#import bevy_pbr::forward_io::VertexOutput | ||
#import bevy_pbr::irradiance_volume | ||
#import bevy_pbr::mesh_view_bindings | ||
|
||
struct VoxelVisualizationIrradianceVolumeInfo { | ||
transform: mat4x4<f32>, | ||
inverse_transform: mat4x4<f32>, | ||
resolution: vec3<u32>, | ||
// A scale factor that's applied to the diffuse and specular light from the | ||
// light probe. This is in units of cd/m² (candela per square meter). | ||
intensity: f32, | ||
} | ||
|
||
@group(2) @binding(100) | ||
var<uniform> irradiance_volume_info: VoxelVisualizationIrradianceVolumeInfo; | ||
|
||
@fragment | ||
fn fragment(mesh: VertexOutput) -> @location(0) vec4<f32> { | ||
// Snap the world position we provide to `irradiance_volume_light()` to the | ||
// middle of the nearest texel. | ||
var unit_pos = (irradiance_volume_info.inverse_transform * | ||
vec4(mesh.world_position.xyz, 1.0f)).xyz; | ||
let resolution = vec3<f32>(irradiance_volume_info.resolution); | ||
let stp = clamp((unit_pos + 0.5) * resolution, vec3(0.5f), resolution - vec3(0.5f)); | ||
let stp_rounded = round(stp - 0.5f) + 0.5f; | ||
let rounded_world_pos = (irradiance_volume_info.transform * vec4(stp_rounded, 1.0f)).xyz; | ||
|
||
// `irradiance_volume_light()` multiplies by intensity, so cancel it out. | ||
// If we take intensity into account, the cubes will be way too bright. | ||
let rgb = irradiance_volume::irradiance_volume_light( | ||
mesh.world_position.xyz, | ||
mesh.world_normal) / irradiance_volume_info.intensity; | ||
|
||
return vec4<f32>(rgb, 1.0f); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
|
||
Fantasy UI Borders (1.0) | ||
|
||
Created/distributed by Kenney (www.kenney.nl) | ||
Creation date: 03-12-2023 | ||
|
||
For the sample image the font 'Aoboshi One' was used, OPL (Open Font License) | ||
|
||
------------------------------ | ||
|
||
License: (Creative Commons Zero, CC0) | ||
http://creativecommons.org/publicdomain/zero/1.0/ | ||
|
||
You can use this content for personal, educational, and commercial purposes. | ||
|
||
Support by crediting 'Kenney' or 'www.kenney.nl' (this is not a requirement) | ||
|
||
------------------------------ | ||
|
||
• Website : www.kenney.nl | ||
• Donate : www.kenney.nl/donate | ||
|
||
• Patreon : patreon.com/kenney | ||
|
||
Follow on social media for updates: | ||
|
||
• Twitter: twitter.com/KenneyNL | ||
• Instagram: instagram.com/kenney_nl | ||
• Mastodon: mastodon.gamedev.place/@kenney |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ criterion_group!( | |
contrived, | ||
schedule, | ||
build_schedule, | ||
empty_schedule_run, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.