| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
this simplifies the code and serves as another
shadeop to use on application shaders.
|
| |
|
| |
|
|
|
|
|
|
|
| |
vertex attributes were not being updated after clipping
with their corresponding work rectangles, nor when
reordering the points before rasterization, which caused
serious artifacts.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
mixed up CLIP[TB] and the slope was being computed as
an integer division, which caused artifacts.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
this is only an structural replacement and doesn't add
support for the other primitive types.
|
|
|
|
|
| |
- got rid of the z-buffer lock to avoid contention.
- little improvements to fb.c
|
|
|
|
|
|
|
|
|
|
| |
> 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.
|
| |
|
|
|
|
| |
code.
|
|
|
|
|
|
| |
also fixed an issue with cliptriangle() where an
entire tri would get discarded if all its vertices
were outside the frustum.
|
|
|
|
|
| |
also got rid of Deco. there's no point in having that,
just deal with image(6) files.
|
|
i integrated the renderer i've been developing
on the tinyrend repo and got rid of a bunch of
stuff that's no longer necessary. also began
structuring things to fit the new interface i
have in mind.
there are still some artifacts with the
projection xforms that cause issues with
clipping and division by zero.
|