Update exporterbim.js force color to integer (#430)
This commit is contained in:
parent
e89e7a0e1d
commit
97333a932a
@ -83,9 +83,9 @@ export class ExporterBim extends ExporterBase
|
|||||||
let triangle = mesh.GetTriangle (i);
|
let triangle = mesh.GetTriangle (i);
|
||||||
let material = exporterModel.GetMaterial (triangle.mat);
|
let material = exporterModel.GetMaterial (triangle.mat);
|
||||||
let faceColor = {
|
let faceColor = {
|
||||||
r : material.color.r,
|
r : Math.round (material.color.r),
|
||||||
g : material.color.g,
|
g : Math.round (material.color.g),
|
||||||
b : material.color.b,
|
b : Math.round (material.color.b),
|
||||||
a : ColorComponentFromFloat (material.opacity),
|
a : ColorComponentFromFloat (material.opacity),
|
||||||
};
|
};
|
||||||
faceColors.push (faceColor.r, faceColor.g, faceColor.b, faceColor.a);
|
faceColors.push (faceColor.r, faceColor.g, faceColor.b, faceColor.a);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user