.
This commit is contained in:
parent
2aee1b31ff
commit
5e1204f558
1 changed files with 12 additions and 4 deletions
|
@ -47132,10 +47132,18 @@ namespace cimg_library_suffixed {
|
||||||
lightprop2 = lightprops(n2), lightprop3 = lightprops(n3),
|
lightprop2 = lightprops(n2), lightprop3 = lightprops(n3),
|
||||||
lightpropc = (lightprop0 + lightprop1 + lightprop2 + lightprop3)/4;
|
lightpropc = (lightprop0 + lightprop1 + lightprop2 + lightprop3)/4;
|
||||||
if (zbuffer)
|
if (zbuffer)
|
||||||
draw_triangle(zbuffer,x0,y0,z0,x1,y1,z1,x2,y2,z2,color,tx0,ty0,tx1,ty1,tx2,ty2,
|
// draw_triangle(zbuffer,x0,y0,z0,x1,y1,z1,x2,y2,z2,color,tx0,ty0,tx1,ty1,tx2,ty2,
|
||||||
lightprop0,lightprop1,lightprop2,opacity).
|
// lightprop0,lightprop1,lightprop2,opacity).
|
||||||
draw_triangle(zbuffer,x0,y0,z0,x2,y2,z2,x3,y3,z3,color,tx0,ty0,tx2,ty2,tx3,ty3,
|
// draw_triangle(zbuffer,x0,y0,z0,x2,y2,z2,x3,y3,z3,color,tx0,ty0,tx2,ty2,tx3,ty3,
|
||||||
lightprop0,lightprop2,lightprop3,opacity);
|
// lightprop0,lightprop2,lightprop3,opacity);
|
||||||
|
draw_triangle(zbuffer,x0,y0,z0,x1,y1,z1,xc,yc,zc,color,tx0,ty0,tx1,ty1,txc,tyc,
|
||||||
|
lightprop0,lightprop1,lightpropc,opacity).
|
||||||
|
draw_triangle(zbuffer,x1,y1,z1,x2,y2,z2,xc,yc,zc,color,tx1,ty1,tx2,ty2,txc,tyc,
|
||||||
|
lightprop1,lightprop2,lightpropc,opacity).
|
||||||
|
draw_triangle(zbuffer,x2,y2,z2,x3,y3,z3,xc,yc,zc,color,tx2,ty2,tx3,ty3,txc,tyc,
|
||||||
|
lightprop2,lightprop3,lightpropc,opacity).
|
||||||
|
draw_triangle(zbuffer,x3,y3,z3,x0,y0,z0,xc,yc,zc,color,tx3,ty3,tx0,ty0,txc,tyc,
|
||||||
|
lightprop3,lightprop0,lightpropc,opacity);
|
||||||
else
|
else
|
||||||
draw_triangle(x0,y0,z0,x1,y1,z1,x2,y2,z2,color,tx0,ty0,tx1,ty1,tx2,ty2,
|
draw_triangle(x0,y0,z0,x1,y1,z1,x2,y2,z2,color,tx0,ty0,tx1,ty1,tx2,ty2,
|
||||||
lightprop0,lightprop1,lightprop2,opacity).
|
lightprop0,lightprop1,lightprop2,opacity).
|
||||||
|
|
Loading…
Reference in a new issue