Commit graph raylib/src/external/rlsw.h
Author SHA1 Message Date
Bigfoot71
87a8e04a7b tweaks 2025-05-18 22:35:28 +02:00
Bigfoot71
bd2179db39 review sw_raster_quad_axis_aligned 2025-05-18 22:29:50 +02:00
Bigfoot71
a71ec577ac fix sw_quad_is_aligned 2025-05-18 22:29:50 +02:00
Bigfoot71
e75329ab85 review line raster 2025-05-18 22:29:50 +02:00
Bigfoot71
dd48df432e review sw_saturate 2025-05-18 22:29:50 +02:00
Bigfoot71
aead157626 review SW_CLAMP case in sw_texture_map 2025-05-18 22:29:50 +02:00
Bigfoot71
32d849f50c fix face culling 2025-05-18 18:13:10 +02:00
Bigfoot71
7fbc52c0e2 BGRA copy support 2025-05-18 15:57:40 +02:00
Bigfoot71
bb5442e8c0 tweaks 2025-05-18 04:13:30 +02:00
Bigfoot71
07e891ad24 cache texture size minus one + comments 2025-05-18 04:01:49 +02:00
Bigfoot71
6a3818b34f fix gradient calculation 2025-05-18 03:49:53 +02:00
Bigfoot71
0b08e75a2e fix and improve polygon clipping
Sets the vertex count to zero when the polygon is invalid
Stops clipping when the vertex count drops below 3
2025-05-18 03:49:11 +02:00
Bigfoot71
8624edf63d review current vertex data
+ increase max clipped polygon vertices (for extreme cases)
2025-05-18 03:08:01 +02:00
Bigfoot71
7b7ed98873 improve triangle rasterization along Y axis
improved robustness against numerical errors
incremental interpolation along Y
simplified function, fewer jumps
2025-05-18 02:07:36 +02:00
Bigfoot71
2299b6b8e6 increase max clipped polygon vertices 2025-05-18 00:24:52 +02:00
Bigfoot71
72e753a60a rm def 2025-05-17 21:21:23 +02:00
Bigfoot71
88c24f8de7 fix sw_quad_sort_cw 2025-05-17 21:14:55 +02:00
Bigfoot71
903f56ca7b review triangle scanlines
increment all data
2025-05-17 21:10:37 +02:00
Bigfoot71
3913ffeac2 fix texture pool alloc.. 2025-05-17 18:17:29 +02:00
Bigfoot71
f7df285d69 review swMultMatrixf 2025-05-17 18:09:50 +02:00
Bigfoot71
5bab07b3e7 fallback color/texcoord (swDrawArrays) 2025-05-17 17:55:00 +02:00
Bigfoot71
6c73c62713 tweaks 2025-05-17 17:21:14 +02:00
Bigfoot71
87fae2cf31 review pixelformat 2025-05-17 17:06:42 +02:00
Bigfoot71
c35a74a13b set minimum req vertices to 3 (quads) 2025-05-17 16:38:23 +02:00
Bigfoot71
7ec3a5fe6e review texture format + fix copy 2025-05-17 16:32:14 +02:00
Bigfoot71
5b46c6e66f update swClose 2025-05-17 16:18:13 +02:00
Bigfoot71
074b68a809 build fixes 2025-05-17 16:07:04 +02:00
Bigfoot71
09b1c8ba8c use of restrict for blending function parameters 2025-05-16 21:42:34 +02:00
Bigfoot71
0a3e1f361e oops, translating some comments 2025-05-16 21:26:16 +02:00
Bigfoot71
e565077833 new rendering path for axis aligned quads 2025-05-16 21:04:15 +02:00
Bigfoot71
515e894076 tweak the pipeline flow regarding the face culling
avoids misprediction, improves vectorization if possible
2025-05-15 02:54:32 +02:00
Bigfoot71
fd37d4f528 added SW_RESTRICT and redesigned sw_lerp_vertex_PNCTH 2025-05-15 02:36:04 +02:00
Bigfoot71
110445cfe2 fix 'sw_poly_point_render' 2025-05-15 02:28:12 +02:00
Bigfoot71
5e181ede7e use of a single global vertex buffer 2025-05-15 02:23:43 +02:00
Bigfoot71
1c7162271c impl specific quad rendering func 2025-05-15 02:03:23 +02:00
Bigfoot71
55e503171b review framebuffer filling functions 2025-05-11 03:06:57 +02:00
Bigfoot71
a8f222d52c optimized copy/blit functions for each dst format 2025-05-11 02:35:34 +02:00
Bigfoot71
d9c60f2d39 tweak framebuffer functions for better readability 2025-05-11 00:12:47 +02:00
Bigfoot71
1ae8bb4970 use opitmized fract function in sw_texture_map 2025-05-10 23:52:19 +02:00
Bigfoot71
d98f229814 tweak lerp vertex function 2025-05-10 23:52:19 +02:00
Bigfoot71
f0d8653d07 greatly improve float saturation 2025-05-10 23:52:19 +02:00
Bigfoot71
a37a8cafd9 review color blending system 2025-05-10 23:52:19 +02:00
Bigfoot71
c1621b3d6d remove useless scissor related data 2025-05-10 23:52:19 +02:00
Bigfoot71
c6cf6c953a preventing a possible division by zero 2025-05-04 17:11:39 +02:00
Bigfoot71
0e58392e8f swBegin tweaks 2025-05-04 17:11:39 +02:00
Bigfoot71
0a6b41d189 reduce matrix compuations and memory usage 2025-05-04 17:11:39 +02:00
Bigfoot71
aff76d9692 impl framebuffer blit function 2025-04-23 17:48:04 +02:00
Bigfoot71
fbdd38c92c fix ndc projection (viewport/scissor) 2025-04-23 17:12:05 +02:00
Bigfoot71
35371bf2b2 review texture wrap 2025-04-23 16:50:46 +02:00
Bigfoot71
a40e8f463c remove normal interpolation 2025-04-23 16:12:57 +02:00