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
Bevy can't render default shapes if bevy_render
has shader_format_glsl
enabled.
#13232
Comments
I'm seeing the same error message using a Bevy 0.13.2 System info:
|
I played around with this a bit more and got it to start up by explicitly setting my rendering backend to OpenGL - it renders fine but with a bunch of errors.
Powershell:
It continues to fail as before if I explicitly set the backend to @jimvdl can you see if that makes any difference for you? |
For me no rendering happens, I have roughly the same errors but my GPU doesn't have full OpenGL support (it seems) |
I got to the bottom of the error on my end. I was working on migrating an old project over to bevy -- I hadn't realised it was on 2018 Rust edition. Upgrading to 2021 fixed it for me. |
I'm also having the same problem on my Apple machine, it panics as shared above. The issue does not occur if I spawn only the camera or the ground but occurs when I spawn both of them. I'm also new to Bevy and the game development so, got no clues here. Rust version: 1.78.0
Cargo.toml
main.rs
|
Bevy version
0.13
Relevant system information
Operating system: Windows 10.
Rust version: 1.76.0
What you did
Minimal reproducible example:
Cargo.toml
main.rs
What went wrong
I can render GLTF models fine but once I replace that with a
Cuboid::default
I get the following panic:In my bigger project I'm using GLSL to shade models that I've imported with GLTF, those work perfectly, the shader works and the models are correctly imported and displayed. The only thing that goes wrong is if you use either
MaterialMeshBundle
orPbrBundle
with a basic shape mesh, then the above panic occurs.I can't use
bevy_render
withoutshader_format_glsl
because it's a required feature if you want to shade GLTF meshes with GLSL.Additional information
I'm very new to all this, I've worked with Bevy before without needing any models or meshes (it was basically only a ECS backend) so it might be that I'm just doing something wrong.
if you disable the
shader_format_glsl
feature the above example compiles and runs fine.The text was updated successfully, but these errors were encountered: