summaryrefslogtreecommitdiff
path: root/graphics.h
Commit message (Collapse)AuthorAgeFilesLines
* scene: add a method to get an entity from a scene.rodri2024-08-251-0/+1
|
* methods to add primitives and materials to a Model.rodri2024-08-231-0/+3
|
* fix the A-buffer so that it handles multiple render passes.rodri2024-08-211-0/+1
|
* color: add ACES tone mapping functions.rodri2024-08-191-0/+2
|
* correct the light types constants.rodri2024-08-171-3/+3
|
* unify drawing routines and add clipped fb drawing support.rodri2024-08-171-4/+2
| | | | | | now changing the viewport offset will correctly show the portion of the framebuffer that's visible, including support for upscaled views.
* fixes.rodri2024-08-131-1/+1
|
* fix FPINVAL error. knob for fb clear color. general improvements.rodri2024-08-111-1/+3
|
* experimental A-buffer implementation.rodri2024-08-101-0/+29
| | | | | | | | | 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.
* offset fb during drawing based on viewport config. move OBJ-related ↵rodri2024-08-071-5/+10
| | | | procedures to its own unit.
* make the depth buffer 32-bit.rodri2024-08-041-1/+1
|
* add a viewport upscale filters interface.rodri2024-08-021-0/+9
|
* reduce the volume of Camera.times records. clean up.rodri2024-07-201-2/+2
|
* fix stack overflow, skybox fov sensibility and scene duplication.rodri2024-07-151-0/+1
| | | | | | | | | 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.rodri2024-07-141-0/+2
|
* small improvements and a skybox bugfix.rodri2024-07-141-1/+1
|
* new camera interface.rodri2024-07-131-2/+8
|
* enable culling and add a camera knob for it.rodri2024-07-131-11/+14
|
* fix the geometry glitches when moving things around.rodri2024-07-131-2/+8
| | | | | | | | | | 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.rodri2024-07-121-1/+2
|
* texture nomenclature changes. fb format RGBA → XRGB.rodri2024-07-091-3/+3
| | | | | | 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.rodri2024-07-051-8/+22
|
* rough color space conversion implementation.rodri2024-07-041-0/+4
| | | | | | | | 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.
* fix the barycoords routine to avoid reporting false degenerates.rodri2024-06-141-0/+2
| | | | added a normals buffer for debugging.
* replace the Memimage color buffer with a ulong* one. some fixes.rodri2024-06-131-2/+1
|
* add spotlight params and a light color shading routine. other things.rodri2024-06-101-0/+7
| | | | | | among these other things are clamping the color channels to [0,1] internally, and adding a modulation function for mixing colors/points.
* add cubemaps.rodri2024-06-061-2/+15
|
* add a tangent parameter for normal mapping, and a world2model xform.rodri2024-06-041-1/+3
|
* add a normal map property to Material.rodri2024-05-281-0/+1
|
* replace the Framebufctl's Lock with a QLock.rodri2024-05-231-1/+1
| | | | this provides fair scheduling, minimizing contention.
* fix the perspective projection and add inverse xform functions.rodri2024-05-201-0/+9
|
* render: improve line raster (not fixed yet). also tag jobs with an id.rodri2024-05-171-1/+2
|
* add a name property to Material.rodri2024-05-121-0/+1
|
* add a general primitive with support for points, lines and triangles.rodri2024-05-031-8/+7
| | | | | | | | 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.
* replace the Triangle with a general purpose Primitive.rodri2024-04-161-8/+19
| | | | | this is only an structural replacement and doesn't add support for the other primitive types.
* add some instrumentation to measure pipeline stage time.rodri2024-04-151-0/+15
|
* implement a fully concurrent pipeline based on tiles.rodri2024-04-151-4/+3
| | | | | - got rid of the z-buffer lock to avoid contention. - little improvements to fb.c
* simplify the job scheduler. correct two mistakes regarding the Viewport.rodri2024-04-051-7/+5
| | | | | | | | | | > They made two mistakes. they hanged the wrong man and they didn't finish the job. so Clint Eastwood came back to kick my ass. the mistakes in question were that the Viewport shouldn't know about double buffering, conceptually it has a framebuffer and that's it. the second one was passing it to the renderer, when the renderer couldn't care less about what a viewport is.
* scene: add a way to remove entities and fix the clearscene routine.rodri2024-04-031-0/+1
|
* scene: implement full cleanup procedures.rodri2024-04-031-0/+1
|
* viewport: add a way to access front and back buffers.rodri2024-04-011-0/+1
|
* pass a Viewport in the Renderjob instead of a fb.rodri2024-03-261-1/+2
| | | | | do the frame buffer clearing and swapping as part of the rendering process, not within shootcamera.
* implement a (partially) concurrent pipeline.rodri2024-03-251-4/+27
|
* use the new libgeometry berp routines. add a frame counter to the camstats.rodri2024-03-211-0/+2
|
* make the fshader return a Color instead of a Memimage. clean things up.rodri2024-03-061-5/+4
|
* add a texture sampler with nearest and bilinear routines.rodri2024-03-061-0/+28
| | | | | | pass the material reference along with the vertices. also implemented back-face culling, but it's disabled for now.
* add user-defined vertex attributes (varyings) and improve the interpolation ↵rodri2024-03-031-14/+29
| | | | code.
* have separate routines for drawing and memdrawing.rodri2024-02-271-1/+6
|
* interpolate every vertex attribute when clipping and during rasterization.rodri2024-02-251-2/+8
| | | | added parameters necessary to implement the Phong shading model.
* add initial support for OBJMaterial properties.rodri2024-02-211-1/+5
|