Working trinagle interpolation

Fixed triangle interpolation, both parametric and color.
Started developing Tensor Product gradient. (Does not work for now)
A bit of refactoring.
This commit is contained in:
danya
2021-03-20 16:47:44 +03:00
parent b8d663139b
commit c1855bbf2a
10 changed files with 391 additions and 123 deletions

View File

@ -39,6 +39,7 @@ struct Info {
c = {(LONG)0xFFff0000, (LONG)0xFFffa500, (LONG)0xFFffff00, (LONG)0xFF008000, (LONG)0xFF0000ff, (LONG)0xFFFF00FF};
p = {0.0,0.2,0.4,0.6,0.8,1};
n_colors = 6;
ginfo.shading.parametrised_triangle_shading = false;
};
~Info() {
}