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

Directional light and shadow #6

Merged
merged 52 commits into from
Jul 8, 2021

Commits on Jun 19, 2021

  1. bevy_pbr2: Add support for most of the StandardMaterial textures

    Normal maps are not included here as they require tangents in a vertex attribute.
    superdump committed Jun 19, 2021
    Configuration menu
    Copy the full SHA
    f7b61a3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a7d743f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    78e7603 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    984b9ad View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2021

  1. bevy_pbr2: Uniform control flow for texture sampling in pbr.frag

    From 'fintelia' on the Bevy Render Rework Round 2 discussion:
    
    "My understanding is that GPUs these days never use the "execute both branches
    and select the result" strategy. Rather, what they do is evaluate the branch
    condition on all threads of a warp, and jump over it if all of them evaluate to
    false. If even a single thread needs to execute the if statement body, however,
    then the remaining threads are paused until that is completed."
    superdump committed Jun 20, 2021
    Configuration menu
    Copy the full SHA
    d2f11bd View commit details
    Browse the repository at this point in the history
  2. bevy_pbr2: Simplify texture and sampler names

    The StandardMaterial_ prefix is no longer needed
    superdump committed Jun 20, 2021
    Configuration menu
    Copy the full SHA
    af71877 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4c32a3a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b5aae65 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    57617b2 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2021

  1. Configuration menu
    Copy the full SHA
    64385dc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f40c3b9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d41f69a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3965713 View commit details
    Browse the repository at this point in the history
  5. bevy_pbr2: pbr.frag: Rename PointLight.projection to view_projection

    The uniform contains the view_projection matrix so this was incorrect.
    superdump committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    5d1dfb1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dd758b9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    78dcc39 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    530a938 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2021

  1. Configuration menu
    Copy the full SHA
    6fe9950 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    57e7ef8 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2021

  1. bevy_pbr2: Fix use of both omni and directional lights

    Indexing was incorrect.
    superdump committed Jun 23, 2021
    Configuration menu
    Copy the full SHA
    d7af224 View commit details
    Browse the repository at this point in the history
  2. bevy_pbr2: Move directional light's view back to the origin

    Still looking along the light's direction.
    superdump committed Jun 23, 2021
    Configuration menu
    Copy the full SHA
    f76ea05 View commit details
    Browse the repository at this point in the history
  3. 3d_scene_pipelined: Move the cube to sit on the plane

    This demonstrates peter panning problems with shadows.
    superdump committed Jun 23, 2021
    Configuration menu
    Copy the full SHA
    fd5b0f3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8fbdf64 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3a9a23e View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2021

  1. Configuration menu
    Copy the full SHA
    b20a500 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50f01a3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    14829c6 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2021

  1. Configuration menu
    Copy the full SHA
    a0eb342 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7cbb00d View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2021

  1. Configuration menu
    Copy the full SHA
    9f6ef59 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2021

  1. Configuration menu
    Copy the full SHA
    0633e65 View commit details
    Browse the repository at this point in the history
  2. bevy_pbr2: Fix light uniforms

    Putting the largest things first got rid of a ton of seemingly unnecessary padding
    that was being ignored when the data was written (i.e. data we wanted was being
    written into the padding???)
    superdump committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    f8d96d1 View commit details
    Browse the repository at this point in the history
  3. bevy_pbr2: Fix the position outputs from the vertex stage

    The world_position is just model * vertex position.
    view_proj * world_position is the clip space position.
    superdump committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    fba4011 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0fecd3d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3a19a63 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    10819b0 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2021

  1. Configuration menu
    Copy the full SHA
    df6074d View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2021

  1. crevice: Add std{140,430}_padded_size_static

    This rounds up the size to the struct's alignment. This allows interoperability with wgsl.
    superdump committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    ff33307 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0530368 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6226865 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7ed3832 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2021

  1. Configuration menu
    Copy the full SHA
    bbb9a81 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    baf966c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b59fa7f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    14965e7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4e01e37 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    37efe64 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2021

  1. Revert "Merge branch 'crevice-padded-size' into directional-light-and…

    …-shadow"
    
    This reverts commit 6226865, reversing
    changes made to df6074d.
    superdump committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    98428bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    348adb9 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2021

  1. fix rotation

    cart committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    c6d1d6c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0f9cc99 View commit details
    Browse the repository at this point in the history
  3. simplify examples

    cart committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    8efae35 View commit details
    Browse the repository at this point in the history