prushton2 / RenderEngine

3 Dimensional Render Engine built in Rust
0 stars 0 forks source link

Issue with filling objects #2

Open prushton2 opened 2 years ago

prushton2 commented 2 years ago

When filling overlapping triangles, some areas may not be filled. Either use a new fill alg or create a layer and overlap the layer onto the frame.

prushton2 commented 2 years ago

Create array that contains only the triangle, and keep every other pixel as alpha. and fill it. Place this array over the frame array. Array should be the smallest possible to prevent potential stack overflow errors.