Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | patch a leak in rectclipline. fix a pixel-discarding logic statement. | rodri | 2024-10-05 | 1 | -2/+2 |
| | |||||
* | shorten Shadertab prop names. add quaternion sandwich product utils. | rodri | 2024-10-02 | 1 | -6/+6 |
| | |||||
* | implement a uniforms interface through Shadertab. | rodri | 2024-10-01 | 1 | -11/+14 |
| | |||||
* | implement a parser for a model(6). get rid of the libobj dependency. | rodri | 2024-09-26 | 1 | -4/+3 |
| | |||||
* | implement clipped drawing. take branching out of the upscaler loop. | rodri | 2024-09-20 | 1 | -0/+51 |
| | | | | | | the rasterizers now produce a bbox of used fragments/pixels that are unified at the end of every job/frame. we use that when drawing so only the part that was rasterized gets sent to devdraw. | ||||
* | get rid of the turbopool (the experiment was futile.) | rodri | 2024-09-19 | 1 | -3/+0 |
| | |||||
* | a better turbopool. | rodri | 2024-09-17 | 1 | -2/+2 |
| | |||||
* | turn the camera rendering options into a bitmap. | rodri | 2024-09-13 | 1 | -15/+18 |
| | |||||
* | render: discard non-colors. | rodri | 2024-09-13 | 1 | -15/+19 |
| | |||||
* | change the raster format to RGBA32. draw to any image format. clean up. | rodri | 2024-09-11 | 1 | -26/+0 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | fix a use-after-free when profiling rasterizer times. | rodri | 2024-09-10 | 1 | -2/+6 |
| | | | | | | | | | | this commit also includes the turbo drawing pool. the experiment was successful in getting reasonable drawing times to a fullhd image, but the process causes glitches when moving the objects around, which is unacceptable. it's been commented out for now. | ||||
* | render: increase queue sizes. | rodri | 2024-09-08 | 1 | -3/+3 |
| | |||||
* | render: clip the triangle bbox against the wr directly at the tiler. | rodri | 2024-09-08 | 1 | -12/+5 |
| | |||||
* | render: only store rendertimes if profiling is enabled. | rodri | 2024-09-08 | 1 | -12/+16 |
| | |||||
* | allocate renderjob times dynamically for the parallel stages. | rodri | 2024-09-08 | 1 | -6/+7 |
| | |||||
* | remove unnecessary copying. profile individual stage procs. | rodri | 2024-09-07 | 1 | -60/+78 |
| | |||||
* | render: get more accurate stage completion times. | rodri | 2024-09-01 | 1 | -31/+31 |
| | |||||
* | unify shaders into a single interface. | rodri | 2024-09-01 | 1 | -40/+72 |
| | |||||
* | render: remove pointless for-loop. | rodri | 2024-08-31 | 1 | -24/+25 |
| | |||||
* | render: get rid of useless temporary. | rodri | 2024-08-31 | 1 | -3/+2 |
| | |||||
* | implement a general raster interface for the framebuffers. | rodri | 2024-08-29 | 1 | -19/+44 |
| | | | | | | | | | | | | | | | got a bit tired of having to add a ulong *buf every time i needed to get some data out of the shaders, so i made it possible to create as many extra buffers as needed, which then can be addressed from the fragment shader and drawn using the same drawing routines that were used for the color buffer. these so called Rasters are very similar to the OpenGL FBOs, in case you are familiar, but we address them by strings instead of numbers. and they can also be used as textures if you create one (see alloctexture) and then memdraw into it after every shot. | ||||
* | fix the A-buffer so that it handles multiple render passes. | rodri | 2024-08-21 | 1 | -12/+15 |
| | |||||
* | fixes. | rodri | 2024-08-13 | 1 | -2/+2 |
| | |||||
* | fix FPINVAL error. knob for fb clear color. general improvements. | rodri | 2024-08-11 | 1 | -3/+4 |
| | |||||
* | experimental A-buffer implementation. | rodri | 2024-08-10 | 1 | -15/+91 |
| | | | | | | | | | very simple, without anti-aliasing, made for getting OIT (order independent transparency) rendering of arbitrary objects. also added switches for blending, depth testing and the A-buffer to the camera. | ||||
* | fix a double-free. add a generic value-swapping macro. | rodri | 2024-08-05 | 1 | -6/+6 |
| | |||||
* | make the depth buffer 32-bit. | rodri | 2024-08-04 | 1 | -1/+2 |
| | |||||
* | fix line interpolation during rasterization. | rodri | 2024-08-02 | 1 | -3/+3 |
| | | | | | | | vertex attributes were not being updated after clipping with their corresponding work rectangles, nor when reordering the points before rasterization, which caused serious artifacts. | ||||
* | implement pixel art upscaling filters scale[23]x. tidy up some code. | rodri | 2024-07-16 | 1 | -4/+2 |
| | |||||
* | enable culling and add a camera knob for it. | rodri | 2024-07-13 | 1 | -4/+5 |
| | |||||
* | fix the geometry glitches when moving things around. | rodri | 2024-07-13 | 1 | -71/+75 |
| | | | | | | | | | | it's possible for interactive programs to keep updating the geometry of the scene during rendering, which caused primitives to look deformed or shattered in the final image. to avoid this we take a snapshot of the current state of things (scene and camera), and render based on that copy. | ||||
* | small improvements. | rodri | 2024-07-12 | 1 | -6/+5 |
| | |||||
* | texture nomenclature changes. fb format RGBA → XRGB. | rodri | 2024-07-09 | 1 | -9/+9 |
| | | | | | | we are still doing alpha blending, so we use the X chan internally, but we don't care about it when (mem)drawing to the screen. | ||||
* | rough color space conversion implementation. | rodri | 2024-07-04 | 1 | -2/+2 |
| | | | | | | | | 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. | ||||
* | render: don't overwrite the vertex colors with white. report alien prims. | rodri | 2024-06-16 | 1 | -3/+2 |
| | |||||
* | fix the barycoords routine to avoid reporting false degenerates. | rodri | 2024-06-14 | 1 | -1/+27 |
| | | | | added a normals buffer for debugging. | ||||
* | replace the Memimage color buffer with a ulong* one. some fixes. | rodri | 2024-06-13 | 1 | -30/+31 |
| | |||||
* | add spotlight params and a light color shading routine. other things. | rodri | 2024-06-10 | 1 | -4/+4 |
| | | | | | | among these other things are clamping the color channels to [0,1] internally, and adding a modulation function for mixing colors/points. | ||||
* | add cubemaps. | rodri | 2024-06-06 | 1 | -0/+1 |
| | |||||
* | add a tangent parameter for normal mapping, and a world2model xform. | rodri | 2024-06-04 | 1 | -5/+1 |
| | |||||
* | replace the Framebufctl's Lock with a QLock. | rodri | 2024-05-23 | 1 | -0/+1 |
| | | | | this provides fair scheduling, minimizing contention. | ||||
* | fix line rasterization. | rodri | 2024-05-21 | 1 | -6/+5 |
| | |||||
* | fix the perspective projection and add inverse xform functions. | rodri | 2024-05-20 | 1 | -112/+0 |
| | |||||
* | render: improve line raster (not fixed yet). also tag jobs with an id. | rodri | 2024-05-17 | 1 | -6/+7 |
| | |||||
* | clip: fix rectclipline. | rodri | 2024-05-03 | 1 | -1/+2 |
| | | | | | mixed up CLIP[TB] and the slope was being computed as an integer division, which caused artifacts. | ||||
* | add a general primitive with support for points, lines and triangles. | rodri | 2024-05-03 | 1 | -264/+247 |
| | | | | | | | | also got rid of the dependency on OBJ for the entire renderer, instead letting the user load a Model from any given OBJ. this modularity will allow for other formats to be used in the same way, relying on a single, internal representation for the entire pipeline. | ||||
* | render: add rasterizer init params and per-proc identification. | rodri | 2024-04-24 | 1 | -16/+20 |
| | |||||
* | render: use the primitive's bbox to check for tile membership. | rodri | 2024-04-18 | 1 | -9/+12 |
| | | | | | | this fixes a bug i introduced with the fully concurrent pipeline, where instead of testing whether the triangle *crossed* any of the tiles, i checked whether any of the points *were inside*. | ||||
* | render: make sure the last tile fills the screen. | rodri | 2024-04-18 | 1 | -0/+2 |
| | |||||
* | replace the Triangle with a general purpose Primitive. | rodri | 2024-04-16 | 1 | -91/+94 |
| | | | | | this is only an structural replacement and doesn't add support for the other primitive types. |