forked from StrafesNET/strafe-client
scope skybox
This commit is contained in:
parent
140e84341d
commit
e2f649baae
@ -393,6 +393,7 @@ impl strafe_client::framework::Example for GraphicsData {
|
||||
//load textures
|
||||
let device_features = device.features();
|
||||
|
||||
let skybox_texture_view={
|
||||
let skybox_format = if device_features.contains(wgpu::Features::TEXTURE_COMPRESSION_ASTC) {
|
||||
log::info!("Using ASTC");
|
||||
wgpu::TextureFormat::Astc {
|
||||
@ -458,11 +459,12 @@ impl strafe_client::framework::Example for GraphicsData {
|
||||
&skybox_image.data,
|
||||
);
|
||||
|
||||
let skybox_texture_view = skybox_texture.create_view(&wgpu::TextureViewDescriptor {
|
||||
skybox_texture.create_view(&wgpu::TextureViewDescriptor {
|
||||
label: Some("Skybox Texture View"),
|
||||
dimension: Some(wgpu::TextureViewDimension::Cube),
|
||||
..wgpu::TextureViewDescriptor::default()
|
||||
});
|
||||
})
|
||||
};
|
||||
|
||||
//squid
|
||||
let squid_texture_view={
|
||||
|
Loading…
Reference in New Issue
Block a user