Skip to content

Commit 871baf3

Browse files
committed
Additive blending is ONE, ONE.
1 parent b4c9987 commit 871baf3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/ObjectivelyGPU/GraphicsPipeline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ OBJECTIVELYGPU_EXPORT_DATA const SDL_GPUColorTargetBlendState GPU_BlendStatePrem
5656

5757
OBJECTIVELYGPU_EXPORT_DATA const SDL_GPUColorTargetBlendState GPU_BlendStateAdditive = {
5858
.enable_blend = true,
59-
.src_color_blendfactor = SDL_GPU_BLENDFACTOR_SRC_ALPHA,
59+
.src_color_blendfactor = SDL_GPU_BLENDFACTOR_ONE,
6060
.dst_color_blendfactor = SDL_GPU_BLENDFACTOR_ONE,
6161
.color_blend_op = SDL_GPU_BLENDOP_ADD,
6262
.src_alpha_blendfactor = SDL_GPU_BLENDFACTOR_ONE,

Sources/ObjectivelyGPU/GraphicsPipeline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ OBJECTIVELYGPU_EXPORT const SDL_GPUColorTargetBlendState GPU_BlendStateAlpha;
154154
OBJECTIVELYGPU_EXPORT const SDL_GPUColorTargetBlendState GPU_BlendStatePremultipliedAlpha;
155155

156156
/**
157-
* @brief Additive blending: `src·srcA + dst`, for glow, particles, and light accumulation.
157+
* @brief Additive blending: `src + dst`, for glow, particles, and light accumulation.
158158
*/
159159
OBJECTIVELYGPU_EXPORT const SDL_GPUColorTargetBlendState GPU_BlendStateAdditive;
160160

0 commit comments

Comments
 (0)