We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v0.5.0
Windows 10
Spawn a Torus & a Light
The Torus to have a normal colour
The Half of the torus is a weird gray-ish colour
This happens with other Meshes nearby, but also when the torus is spawned alone with the light
commands.spawn_bundle(PbrBundle { mesh: meshes.add(Mesh::from(shape::Torus { radius: 2.0, ring_radius: 1.5, subdivisions_segments: 64, subdivisions_sides: 64, })), material: materials.add(Color::rgb_u8(0, 0, 255).into()), transform: Transform::from_xyz(-1.0, 2.5, -5.0), ..Default::default() }); // Light commands.spawn_bundle(LightBundle { transform: Transform::from_xyz(0.0, 16.0, 1.0), light: Light { color: Color::WHITE, range: 40.0, intensity: 400.0, ..Default::default() }, ..Default::default() });
The text was updated successfully, but these errors were encountered:
We suspect that this is an issue with the normals: that's probably the best place to start digging into this issue.
Sorry, something went wrong.
@jakobhellermann adapted the code from http://apparat-engine.blogspot.com/2013/04/procedural-meshes-torus.html originally. We should check for obvious differences between this and our implementation.
24b21ea
Successfully merging a pull request may close this issue.
Bevy version
v0.5.0
Operating system & version
Windows 10
What you did
Spawn a Torus & a Light
What you expected to happen
The Torus to have a normal colour
What actually happened
The Half of the torus is a weird gray-ish colour
Additional information
This happens with other Meshes nearby, but also when the torus is spawned alone with the light
The text was updated successfully, but these errors were encountered: