mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Added color scale info for the GPU renderer TODO item
This commit is contained in:
parent
4b54e32231
commit
e2254b1045
1 changed files with 1 additions and 0 deletions
|
|
@ -432,6 +432,7 @@ static bool GPU_QueueGeometry(SDL_Renderer *renderer, SDL_RenderCommand *cmd, SD
|
|||
}
|
||||
|
||||
// FIXME: The Vulkan backend doesn't multiply by color_scale. GL does. I'm not sure which one is wrong.
|
||||
// ANSWER: The color scale should be applied in linear space when using the scRGB colorspace. This is done in shaders in the Vulkan backend.
|
||||
*(verts++) = col_.r * color_scale;
|
||||
*(verts++) = col_.g * color_scale;
|
||||
*(verts++) = col_.b * color_scale;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue