Small setting changes
This commit is contained in:
parent
8d3b03da24
commit
506962bdcd
3 changed files with 17 additions and 3 deletions
|
@ -54,7 +54,7 @@ impl<'a> Default for EngineCreateInfo<'a> {
|
||||||
enable_game_mode: true,
|
enable_game_mode: true,
|
||||||
},
|
},
|
||||||
vulkan_debug_info: VulkanDebugInfo {
|
vulkan_debug_info: VulkanDebugInfo {
|
||||||
debugging: true,
|
debugging: false,
|
||||||
steam_layer: false,
|
steam_layer: false,
|
||||||
verbose: false,
|
verbose: false,
|
||||||
renderdoc: false,
|
renderdoc: false,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#version 450
|
#version 450
|
||||||
|
|
||||||
layout (binding = 1) uniform samplerCube sampler_cube_map;
|
layout (set = 0, binding = 1) uniform samplerCube sampler_cube_map;
|
||||||
|
|
||||||
layout (location = 0) in vec3 in_uvw;
|
layout (location = 0) in vec3 in_uvw;
|
||||||
|
|
||||||
|
|
|
@ -249,7 +249,21 @@ impl SkyBox {
|
||||||
.default_multisample(sample_count)
|
.default_multisample(sample_count)
|
||||||
.default_color_blend(vec![VkPipelineColorBlendAttachmentState::default()])
|
.default_color_blend(vec![VkPipelineColorBlendAttachmentState::default()])
|
||||||
.default_rasterization(VK_CULL_MODE_NONE, VK_FRONT_FACE_CLOCKWISE)
|
.default_rasterization(VK_CULL_MODE_NONE, VK_FRONT_FACE_CLOCKWISE)
|
||||||
.whole_area(render_target.width(), render_target.height())
|
.add_viewport(VkViewport {
|
||||||
|
x: 0.0,
|
||||||
|
y: 0.0,
|
||||||
|
width: render_target.width() as f32,
|
||||||
|
height: render_target.height() as f32,
|
||||||
|
minDepth: -1.0,
|
||||||
|
maxDepth: 1.0,
|
||||||
|
})
|
||||||
|
.add_scissor(VkRect2D {
|
||||||
|
offset: VkOffset2D { x: 0, y: 0 },
|
||||||
|
extent: VkExtent2D {
|
||||||
|
width: render_target.width(),
|
||||||
|
height: render_target.height(),
|
||||||
|
},
|
||||||
|
})
|
||||||
.build(
|
.build(
|
||||||
context.device().clone(),
|
context.device().clone(),
|
||||||
pipeline_layout,
|
pipeline_layout,
|
||||||
|
|
Loading…
Reference in a new issue