mirror of
https://git.coom.tech/drummyfish/small3dlib.git
synced 2024-11-22 20:49:58 +01:00
10 lines
707 B
Text
10 lines
707 B
Text
- 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!
|