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

examples(shaders/glsl): Update GLSL Shader Example Camera View uniform #15865

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Oct 12, 2024

  1. examples(shaders/glsl): Update GLSL Shader Example Camera View uniform

    The Custom Material GLSL shader example had what seemed to be an old
    version of the camera view uniform.
    
    I was running into issues using camera world position
    and someone in discord pointed me to the source of truth.
      crates/bevy_render/src/view/view.wgsl
    
    Since this was helpful to me I've updated the shader example
    to have the latest view uniform structure converted to GLSL.
    
    I tested it with:
    ```bash
    cargo run --features shader_format_glsl --example shader_material_glsl
    ```
    jakeswenson committed Oct 12, 2024
    Configuration menu
    Copy the full SHA
    e83ebc1 View commit details
    Browse the repository at this point in the history