mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-18 07:35:19 +00:00
Fix skybox for web
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
use std::f32::consts;
|
||||
|
||||
use bevy::{
|
||||
core_pipeline::prepass::{DepthPrepass, NormalPrepass},
|
||||
input::mouse::{MouseButton, MouseMotion},
|
||||
prelude::*,
|
||||
window::{CursorGrabMode, PrimaryWindow},
|
||||
@@ -52,10 +51,12 @@ fn spawn_camera(mut cmd: Commands) {
|
||||
cmd.spawn((
|
||||
Camera3dBundle {
|
||||
transform: camera_xform,
|
||||
camera: Camera {
|
||||
hdr: true,
|
||||
..default()
|
||||
},
|
||||
..default()
|
||||
},
|
||||
DepthPrepass,
|
||||
NormalPrepass,
|
||||
OrbitCam {
|
||||
radius: camera_xform.translation.length(),
|
||||
..default()
|
||||
|
||||
Reference in New Issue
Block a user