mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-25 08:51:32 +11:00
force srgb framebuffers in crt-royale passes
This commit is contained in:
parent
588bccd4a8
commit
0640cc2cca
0
blurs/blur9fast-horizontal-gamma-encode-every-fbo.slang
Normal file → Executable file
0
blurs/blur9fast-horizontal-gamma-encode-every-fbo.slang
Normal file → Executable file
0
blurs/blur9fast-horizontal-last-pass-gamma-encode-every-fbo.slang
Normal file → Executable file
0
blurs/blur9fast-horizontal-last-pass-gamma-encode-every-fbo.slang
Normal file → Executable file
0
blurs/blur9fast-horizontal-last-pass.slang
Normal file → Executable file
0
blurs/blur9fast-horizontal-last-pass.slang
Normal file → Executable file
1
blurs/blur9fast-horizontal.slang
Normal file → Executable file
1
blurs/blur9fast-horizontal.slang
Normal file → Executable file
|
@ -63,6 +63,7 @@ layout(std140, set = 0, binding = 0) uniform UBO
|
|||
/////////////////////////////// FRAGMENT SHADER //////////////////////////////
|
||||
|
||||
#pragma stage fragment
|
||||
#pragma format R8G8B8A8_SRGB
|
||||
layout(location = 0) in vec2 tex_uv;
|
||||
layout(location = 1) in vec2 blur_dxdy;
|
||||
layout(location = 0) out vec4 FragColor;
|
||||
|
|
0
blurs/blur9fast-vertical-gamma-encode-every-fbo.slang
Normal file → Executable file
0
blurs/blur9fast-vertical-gamma-encode-every-fbo.slang
Normal file → Executable file
1
blurs/blur9fast-vertical.slang
Normal file → Executable file
1
blurs/blur9fast-vertical.slang
Normal file → Executable file
|
@ -63,6 +63,7 @@ layout(std140, set = 0, binding = 0) uniform UBO
|
|||
/////////////////////////////// FRAGMENT SHADER //////////////////////////////
|
||||
|
||||
#pragma stage fragment
|
||||
#pragma format R8G8B8A8_SRGB
|
||||
layout(location = 0) in vec2 tex_uv;
|
||||
layout(location = 1) in vec2 blur_dxdy;
|
||||
layout(location = 0) out vec4 FragColor;
|
||||
|
|
1
crt/shaders/crt-royale/src/crt-royale-bloom-approx.slang
Normal file → Executable file
1
crt/shaders/crt-royale/src/crt-royale-bloom-approx.slang
Normal file → Executable file
|
@ -216,6 +216,7 @@ void main()
|
|||
}
|
||||
|
||||
#pragma stage fragment
|
||||
#pragma format R8G8B8A8_SRGB
|
||||
layout(location = 0) in vec2 tex_uv;
|
||||
layout(location = 1) in float estimated_viewport_size_x;
|
||||
layout(location = 2) in vec2 blur_dxdy;
|
||||
|
|
1
crt/shaders/crt-royale/src/crt-royale-bloom-horizontal-reconstitute.slang
Normal file → Executable file
1
crt/shaders/crt-royale/src/crt-royale-bloom-horizontal-reconstitute.slang
Normal file → Executable file
|
@ -83,6 +83,7 @@ void main()
|
|||
}
|
||||
|
||||
#pragma stage fragment
|
||||
#pragma format R8G8B8A8_SRGB
|
||||
layout(location = 0) in vec2 video_uv;
|
||||
layout(location = 1) in vec2 scanline_tex_uv;
|
||||
layout(location = 2) in vec2 halation_tex_uv;
|
||||
|
|
1
crt/shaders/crt-royale/src/crt-royale-bloom-vertical.slang
Normal file → Executable file
1
crt/shaders/crt-royale/src/crt-royale-bloom-vertical.slang
Normal file → Executable file
|
@ -69,6 +69,7 @@ void main()
|
|||
}
|
||||
|
||||
#pragma stage fragment
|
||||
#pragma format R8G8B8A8_SRGB
|
||||
layout(location = 0) in vec2 tex_uv;
|
||||
layout(location = 1) in vec2 bloom_dxdy;
|
||||
layout(location = 2) in float bloom_sigma_runtime;
|
||||
|
|
1
crt/shaders/crt-royale/src/crt-royale-brightpass.slang
Normal file → Executable file
1
crt/shaders/crt-royale/src/crt-royale-brightpass.slang
Normal file → Executable file
|
@ -73,6 +73,7 @@ void main()
|
|||
}
|
||||
|
||||
#pragma stage fragment
|
||||
#pragma format R8G8B8A8_SRGB
|
||||
layout(location = 0) in vec2 video_uv;
|
||||
layout(location = 1) in vec2 scanline_tex_uv;
|
||||
layout(location = 2) in float bloom_sigma_runtime;
|
||||
|
|
1
crt/shaders/crt-royale/src/crt-royale-first-pass-linearize-crt-gamma-bob-fields.slang
Normal file → Executable file
1
crt/shaders/crt-royale/src/crt-royale-first-pass-linearize-crt-gamma-bob-fields.slang
Normal file → Executable file
|
@ -65,6 +65,7 @@ void main()
|
|||
}
|
||||
|
||||
#pragma stage fragment
|
||||
#pragma format R8G8B8A8_SRGB
|
||||
layout(location = 0) in vec2 tex_uv;
|
||||
layout(location = 1) in vec2 uv_step;
|
||||
layout(location = 0) out vec4 FragColor;
|
||||
|
|
0
crt/shaders/crt-royale/src/crt-royale-geometry-aa-last-pass-backup.slang
Normal file → Executable file
0
crt/shaders/crt-royale/src/crt-royale-geometry-aa-last-pass-backup.slang
Normal file → Executable file
0
crt/shaders/crt-royale/src/crt-royale-geometry-aa-last-pass.slang
Normal file → Executable file
0
crt/shaders/crt-royale/src/crt-royale-geometry-aa-last-pass.slang
Normal file → Executable file
0
crt/shaders/crt-royale/src/crt-royale-mask-resize-horizontal.slang
Normal file → Executable file
0
crt/shaders/crt-royale/src/crt-royale-mask-resize-horizontal.slang
Normal file → Executable file
0
crt/shaders/crt-royale/src/crt-royale-mask-resize-vertical.slang
Normal file → Executable file
0
crt/shaders/crt-royale/src/crt-royale-mask-resize-vertical.slang
Normal file → Executable file
1
crt/shaders/crt-royale/src/crt-royale-scanlines-horizontal-apply-mask.slang
Normal file → Executable file
1
crt/shaders/crt-royale/src/crt-royale-scanlines-horizontal-apply-mask.slang
Normal file → Executable file
|
@ -116,6 +116,7 @@ void main()
|
|||
}
|
||||
|
||||
#pragma stage fragment
|
||||
#pragma format R8G8B8A8_SRGB
|
||||
layout(location = 0) in vec2 video_uv;
|
||||
layout(location = 1) in vec2 scanline_tex_uv;
|
||||
layout(location = 2) in vec2 blur3x3_tex_uv;
|
||||
|
|
1
crt/shaders/crt-royale/src/crt-royale-scanlines-vertical-interlacing.slang
Normal file → Executable file
1
crt/shaders/crt-royale/src/crt-royale-scanlines-vertical-interlacing.slang
Normal file → Executable file
|
@ -74,6 +74,7 @@ void main()
|
|||
}
|
||||
|
||||
#pragma stage fragment
|
||||
#pragma format R8G8B8A8_SRGB
|
||||
layout(location = 0) in vec2 tex_uv;
|
||||
layout(location = 1) in vec2 uv_step;
|
||||
layout(location = 2) in vec2 il_step_multiple;
|
||||
|
|
Loading…
Reference in a new issue