summaryrefslogtreecommitdiff
path: root/color.c
Commit message (Collapse)AuthorAgeFilesLines
* change the raster format to RGBA32. draw to any image format. clean up.rodri8 days1-7/+33
| | | | | | | | | | | | | | | | got rid of the bullshit dance between XRGB32 and RGBA32, now all rasters are RGBA32 and premultiply alpha before loading up an image and drawing over the destination. this lets the user compose their own scenes with correct transparency. no more mediocre clearcolor. as a consequence drawing got slower, but if i get the turbo drawing pool working properly that should go away. textures also take alpha pre-multiplied channels into account, dividing them when sampling, so loading transparent textures will show the correct colors.
* color: add ACES tone mapping functions.rodri2024-08-191-0/+71
|
* color: rgba2xrgb ≠ swabl.rodri2024-08-131-2/+2
|
* fix FPINVAL error. knob for fb clear color. general improvements.rodri2024-08-111-0/+7
|
* create a new texture interface.rodri2024-07-051-0/+4
|
* rough color space conversion implementation.rodri2024-07-041-0/+138
colors are now properly processed in linear RGB space for lighting, shading and blending. sRGB is assumed for any texture sampled and the destination framebuffer. it's not perfect, but it does the job for now.