Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | render: remove pointless for-loop. | rodri | 2024-08-31 | 1 | -24/+25 |
| | |||||
* | fb: draw FLOAT32 rasters in greyscale color. | rodri | 2024-08-31 | 1 | -23/+39 |
| | |||||
* | 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 | 6 | -108/+345 |
| | | | | | | | | | | | | | | | 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. | ||||
* | replace f?(min|max) functions with type-agnostic macros. | rodri | 2024-08-27 | 3 | -28/+2 |
| | | | | | this simplifies the code and serves as another shadeop to use on application shaders. | ||||
* | scene: add a method to get an entity from a scene. | rodri | 2024-08-25 | 2 | -0/+13 |
| | |||||
* | methods to add primitives and materials to a Model. | rodri | 2024-08-23 | 3 | -3/+25 |
| | |||||
* | fix the A-buffer so that it handles multiple render passes. | rodri | 2024-08-21 | 2 | -12/+16 |
| | |||||
* | color: add ACES tone mapping functions. | rodri | 2024-08-19 | 2 | -0/+73 |
| | |||||
* | fb: a better clipped drawing procedure. | rodri | 2024-08-19 | 1 | -14/+12 |
| | |||||
* | correct the light types constants. | rodri | 2024-08-17 | 2 | -4/+4 |
| | |||||
* | unify drawing routines and add clipped fb drawing support. | rodri | 2024-08-17 | 4 | -33/+70 |
| | | | | | | now changing the viewport offset will correctly show the portion of the framebuffer that's visible, including support for upscaled views. | ||||
* | color: rgba2xrgb ≠ swabl. | rodri | 2024-08-13 | 1 | -2/+2 |
| | |||||
* | fixes. | rodri | 2024-08-13 | 2 | -3/+3 |
| | |||||
* | fix FPINVAL error. knob for fb clear color. general improvements. | rodri | 2024-08-11 | 5 | -10/+23 |
| | |||||
* | experimental A-buffer implementation. | rodri | 2024-08-10 | 4 | -15/+132 |
| | | | | | | | | | 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. | ||||
* | doc: new content. | rodri | 2024-08-07 | 3 | -1139/+1334 |
| | |||||
* | update the mkfile. | rodri | 2024-08-07 | 1 | -0/+1 |
| | |||||
* | offset fb during drawing based on viewport config. move OBJ-related ↵ | rodri | 2024-08-07 | 5 | -315/+359 |
| | | | | procedures to its own unit. | ||||
* | fix a double-free. add a generic value-swapping macro. | rodri | 2024-08-05 | 5 | -55/+13 |
| | |||||
* | make the depth buffer 32-bit. | rodri | 2024-08-04 | 6 | -8/+9 |
| | |||||
* | fix line interpolation during rasterization. | rodri | 2024-08-02 | 4 | -7/+46 |
| | | | | | | | vertex attributes were not being updated after clipping with their corresponding work rectangles, nor when reordering the points before rasterization, which caused serious artifacts. | ||||
* | fb: fix the destination drawing rectangle. | rodri | 2024-08-02 | 1 | -2/+2 |
| | |||||
* | add a viewport upscale filters interface. | rodri | 2024-08-02 | 3 | -44/+109 |
| | |||||
* | doc: write about the scene, the viewport. organize things better. | rodri | 2024-07-23 | 3 | -1079/+1314 |
| | |||||
* | doc: write about the renderer, with a little introduction. | rodri | 2024-07-22 | 3 | -612/+1229 |
| | |||||
* | reduce the volume of Camera.times records. clean up. | rodri | 2024-07-20 | 3 | -20/+19 |
| | |||||
* | implement pixel art upscaling filters scale[23]x. tidy up some code. | rodri | 2024-07-16 | 4 | -13/+100 |
| | |||||
* | fix stack overflow, skybox fov sensibility and scene duplication. | rodri | 2024-07-15 | 4 | -15/+30 |
| | | | | | | | | | putting the duplicate camera in a local variable turned out to be a bad idea. bring the dynamic version back. the skybox rendering was affected by the camera fov, which made it look like it was not really at infinity, so set it always to 90°. | ||||
* | initial viewport upscaling support. | rodri | 2024-07-14 | 3 | -2/+76 |
| | |||||
* | small improvements and a skybox bugfix. | rodri | 2024-07-14 | 3 | -18/+15 |
| | |||||
* | new camera interface. | rodri | 2024-07-13 | 3 | -20/+74 |
| | |||||
* | enable culling and add a camera knob for it. | rodri | 2024-07-13 | 2 | -15/+19 |
| | |||||
* | fix the geometry glitches when moving things around. | rodri | 2024-07-13 | 8 | -145/+260 |
| | | | | | | | | | | 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 | 4 | -33/+37 |
| | |||||
* | texture nomenclature changes. fb format RGBA → XRGB. | rodri | 2024-07-09 | 4 | -15/+15 |
| | | | | | | 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. | ||||
* | create a new texture interface. | rodri | 2024-07-05 | 4 | -45/+86 |
| | |||||
* | rough color space conversion implementation. | rodri | 2024-07-04 | 5 | -15/+150 |
| | | | | | | | | 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 | 3 | -1/+43 |
| | | | | added a normals buffer for debugging. | ||||
* | replace the Memimage color buffer with a ulong* one. some fixes. | rodri | 2024-06-13 | 5 | -38/+39 |
| | |||||
* | add spotlight params and a light color shading routine. other things. | rodri | 2024-06-10 | 6 | -18/+48 |
| | | | | | | 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 | 7 | -5/+220 |
| | |||||
* | add a tangent parameter for normal mapping, and a world2model xform. | rodri | 2024-06-04 | 4 | -9/+31 |
| | |||||
* | add a normal map property to Material. | rodri | 2024-05-28 | 2 | -0/+8 |
| | |||||
* | replace the Framebufctl's Lock with a QLock. | rodri | 2024-05-23 | 3 | -7/+8 |
| | | | | this provides fair scheduling, minimizing contention. | ||||
* | fix line rasterization. | rodri | 2024-05-21 | 3 | -18/+31 |
| | |||||
* | fix the perspective projection and add inverse xform functions. | rodri | 2024-05-20 | 4 | -112/+177 |
| | |||||
* | render: improve line raster (not fixed yet). also tag jobs with an id. | rodri | 2024-05-17 | 2 | -7/+9 |
| | |||||
* | doc: correct the indices to make things simpler. | rodri | 2024-05-14 | 3 | -27/+27 |
| |