Skip to content
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

Scale normal bias by texel size #26

Merged
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
15cdcd0
3d_scene_pipelined: Use a shallower directional light angle to provok…
superdump Jul 10, 2021
f7ac34d
cornell_box_pipelined: Remove bias tweaks
superdump Jul 10, 2021
eb99286
bevy_pbr2: Simplify shadow biases by moving them to linear depth
superdump Jul 10, 2021
f97942e
bevy_pbr2: Do not use DepthBiasState
superdump Jul 13, 2021
f53baab
bevy_pbr2: Do not use bilinear filtering for sampling depth textures
superdump Jul 13, 2021
f7315cc
pbr.wgsl: Remove unnecessary comment
superdump Jul 13, 2021
7df1bab
bevy_pbr2: Do manual shadow map depth comparisons for more flexibility
superdump Jul 13, 2021
0779593
examples: Add shadow_biases_pipelined example
superdump Jul 14, 2021
45f2d49
bevy_pbr2: Scale the point light normal bias by the shadow map texel …
superdump Jul 14, 2021
70910af
shadow_biases_pipelined: Add support for toggling directional / point…
superdump Jul 14, 2021
c78ea04
shadow_biases_pipelined: Cleanup
superdump Jul 14, 2021
0199071
bevy_pbr2: Scale the directional light normal bias by the shadow map …
superdump Jul 14, 2021
3cbbbcf
shadow_biases_pipelined: Fit the orthographic projection around the s…
superdump Jul 14, 2021
de3ead4
bevy_pbr2: Directional lights should have no shadows outside their pr…
superdump Jul 14, 2021
86fb4d2
bevy_pbr2: Fix the default directional light normal bias
superdump Jul 14, 2021
de5ca1a
Revert "bevy_pbr2: Do manual shadow map depth comparisons for more fl…
superdump Jul 14, 2021
8d12b50
shadow_biases_pipelined: Adjust directional light normal bias in 0.1 …
superdump Jul 14, 2021
ab1ef41
pbr.wgsl: Add a couple of clarifying comments
superdump Jul 15, 2021
b934f7b
Revert "bevy_pbr2: Do not use bilinear filtering for sampling depth t…
superdump Jul 17, 2021
c5a7e76
Merge branch 'pipelined-rendering' into scale-normal-bias-by-texel-size
superdump Jul 17, 2021
17e96ed
shadow_biases_pipelined: Print usage to terminal
superdump Jul 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
shadow_biases_pipelined: Adjust directional light normal bias in 0.1 …
…increments
  • Loading branch information
superdump committed Jul 14, 2021
commit 8d12b50183b5728c26f93608478b8f35bbd3467e
2 changes: 1 addition & 1 deletion examples/3d/shadow_biases_pipelined.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ fn adjust_directional_light_biases(
mut query: Query<&mut DirectionalLight>,
) {
let depth_bias_step_size = 0.01;
let normal_bias_step_size = 0.01;
let normal_bias_step_size = 0.1;
for mut light in query.iter_mut() {
if input.just_pressed(KeyCode::Key5) {
light.shadow_depth_bias -= depth_bias_step_size;
Expand Down