mirror of
https://git.coom.tech/drummyfish/small3dlib.git
synced 2024-11-23 20:59:58 +01:00
11 lines
759 B
Text
11 lines
759 B
Text
- orthographics projection - did I forget this lol?
|
|
- Add option to compute sin with Bhaskaras approx instead of using a LUT.
|
|
- camera's focallength attribute could really rather be stored in
|
|
transformation.scale.z, while scale.x and scale.y could be used for
|
|
orthographic scaling
|
|
- ADD THIS!!! Rendering could be made faster by reusing the mapped vertex
|
|
coordinates between iterations when processing triangles: this supposes that
|
|
a triangle that's being rendered quite likely shares 1 or 2 vertices with the
|
|
previously rendered triangle, so there is no need to expensively transform and
|
|
screen-map all its vertices! ALSO: create a function that optimizes the model
|
|
for rendering, i.e. rearranges the triangle order to favor this optimization!
|