#Use background image instead of clear color?
10 messages · Page 1 of 1 (latest)
I'm not sure it's the best way of doing it but you could use two camera, the first one displaying the background, and the second one ordered after the first one (https://docs.rs/bevy/latest/bevy/render/camera/struct.Camera.html#structfield.order) and having no clear color (https://docs.rs/bevy/latest/bevy/core_pipeline/core_3d/struct.Camera3d.html#structfield.clear_color).
The defining Component for camera entities, storing information about how and what to render through this camera.
Configuration for the “main 3d render graph”.
Thanks @lyric plaza, I'll look into that!
From the cloned source from github, run cargo run --example skybox to see a basic demo. https://github.com/bevyengine/bevy/blob/main/examples/3d/skybox.rs
This might not be exactly what you want -- it doesn't "move with the camera" but it does wrap all the way around.
I think it would be simpler to make a mesh and move it with the camera to cancel out the camera's movement
You could probably parent it to the camera? still need to change it on window resize
Oh nvm in 3D that's probably a bit too janky
IIRC I think the proper way to do this would be with a custom shader and render node to render the image onto a giant triangle which covers the screen. Something like the post processing example (https://github.com/bevyengine/bevy/blob/v0.11.0/examples/shader/post_processing.rs), but rendering before everything instead of after