Added new skybox

This commit is contained in:
Verox001 2025-01-16 23:38:36 +01:00
parent fae154a666
commit 12d61b25c4
6 changed files with 2596 additions and 2 deletions

BIN
res/skybox.glb Normal file

Binary file not shown.

BIN
res/skybox.hdr Normal file

Binary file not shown.

22
res/skybox.mtl Normal file
View File

@ -0,0 +1,22 @@
# File generated by ImageToStl.com - Free Image and 3D model conversion tools
newmtl mat0
Ns 0
Ka 1.0 1.0 1.0
Kd 0 0 0
Ks 0.5 0.5 0.5
Ke 1 1 1
Ni 1.0
d 1
illum 2
newmtl mat1
Ns 250
Ka 1.0 1.0 1.0
Kd 0.85 0.85 0.85
Ks 0 0 0
Ke 0.0 0.0 0.0
Ni 1.0
d 1
illum 1

2568
res/skybox.obj Normal file

File diff suppressed because it is too large Load Diff

BIN
res/skybox.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 MiB

View File

@ -325,7 +325,11 @@ impl<'a> State<'a> {
// UPDATED!
required_features: wgpu::Features::empty(),
// UPDATED!
required_limits: wgpu::Limits::downlevel_defaults(),
required_limits: wgpu::Limits {
// Increase from 2048 to 8192
max_texture_dimension_2d: 8192,
..wgpu::Limits::default()
},
memory_hints: Default::default(),
},
None, // Trace path
@ -511,7 +515,7 @@ impl<'a> State<'a> {
let hdr = hdr::HdrPipeline::new(&device, &config);
let hdr_loader = resources::HdrLoader::new(&device);
let sky_bytes = resources::load_binary("pure-sky.hdr").await.unwrap();
let sky_bytes = resources::load_binary("skybox.hdr").await.unwrap();
let sky_texture = hdr_loader.from_equirectangular_bytes(
&device,
&queue,