mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-10 09:43:26 +00:00
Fix shadowed function
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
This commit is contained in:
parent
a4bf712bfb
commit
06cfcfc641
1 changed files with 0 additions and 8 deletions
|
|
@ -71,14 +71,6 @@ VertexOutput vertex_main(
|
|||
// Global Texture Bindings
|
||||
uniform Sampler2D image;
|
||||
|
||||
// Helper Functions
|
||||
float4 alpha_blend(float4 color, float4 bg) {
|
||||
// Performs standard linear alpha blending: src * src.a + dst * (1 - src.a)
|
||||
float3 blended_rgb = color.rgb * color.a + bg.rgb * (1.0 - color.a);
|
||||
float blended_alpha = color.a + bg.a * (1.0 - color.a);
|
||||
return float4(blended_rgb, blended_alpha);
|
||||
}
|
||||
|
||||
// Main Fragment Shader Entry Point
|
||||
[shader("fragment")]
|
||||
float4 fragment_main(float2 texcoord: TEXCOORD, uniform float4 background) : SV_Target {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue