From f8887e1a038a7eceea9dd006837e246ee6bc598b Mon Sep 17 00:00:00 2001 From: YouSafe Date: Sat, 6 Apr 2024 03:51:02 +0200 Subject: [PATCH] Fix wrong color space --- src/integration.rs | 4 ++-- src/shaders/spv/frag.spv | Bin 740 -> 2088 bytes src/shaders/spv/vert.spv | Bin 2600 -> 1620 bytes src/shaders/src/frag.frag | 15 ++++++++++++++- src/shaders/src/vert.vert | 8 +------- 5 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/integration.rs b/src/integration.rs index de7917c..601ef80 100644 --- a/src/integration.rs +++ b/src/integration.rs @@ -885,7 +885,7 @@ impl Integration { .array_layers(1) .extent(extent) .flags(vk::ImageCreateFlags::empty()) - .format(vk::Format::R8G8B8A8_UNORM) + .format(vk::Format::R8G8B8A8_SRGB) .image_type(vk::ImageType::TYPE_2D) .initial_layout(vk::ImageLayout::UNDEFINED) .mip_levels(1) @@ -920,7 +920,7 @@ impl Integration { let create_info = vk::ImageViewCreateInfo::builder() .components(vk::ComponentMapping::default()) .flags(vk::ImageViewCreateFlags::empty()) - .format(vk::Format::R8G8B8A8_UNORM) + .format(vk::Format::R8G8B8A8_SRGB) .image(texture_image) .subresource_range( vk::ImageSubresourceRange::builder() diff --git a/src/shaders/spv/frag.spv b/src/shaders/spv/frag.spv index 594c91429156b12315bc91e95284874f1e07cb83..f080f07cee1f6dae3e4a817b96ef34338d0f04bd 100644 GIT binary patch literal 2088 zcmZvd*;1215QPUw5F!Z3CW0Eo1qI^*vWRS25Y(^;BA2P(kU*-kP$8h+S!G#1i#J|# z?K}7`-e`HgKhst&oT^jPefmuI{4>)@Q{%`v=NjC3*Y5UQZFIRtF-}}_I44s(sl;)0 zKQa0E0g4N*DHNjVa4jyP85DzjiNLC`CcG9pr6r~!vYM3HxgS~>aWR)nrIVYR$<#_Z zb99tGu6`_J(}jE~o8He?vYBfBG>fjKPM0rb3Mc#Zf~XYrwWF?8`*!ZQa_}yF5EP3+ zI#($d!@NOd^fWgy=c3w2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