- Tue Jan 26, 2016 7:30 pm
#390017
In this code
thickness: 1000000.00
min/max: 999990.000/1000000.000
What I do wrong? How I must pass coating thickness or min/max property?
P.S.
Coating texture pass work fine(of course, when attr.activeType = maxwellrender::MAP_TYPE_BITMAP; and mxmCoating.setPat(txtPath).
Code: Select all
no matter what value I set to thickness or min/max, every time I get that values. Cmaxwell::Ccoating mxmCoating = mxmBSDF.addCoating();
mxmCoating.setState(true);
Cmaxwell::Cattribute attr;
attr.activeType = maxwellrender::MAP_TYPE_VALUE;
attr.value = 5.0;
mxmCoating.setThickness(attr); // Warning not work???
//coating thickness min/max
mxmCoating.setThicknessRange(101.0, 10001.0); // Warning not work??
thickness: 1000000.00
min/max: 999990.000/1000000.000
What I do wrong? How I must pass coating thickness or min/max property?
P.S.
Coating texture pass work fine(of course, when attr.activeType = maxwellrender::MAP_TYPE_BITMAP; and mxmCoating.setPat(txtPath).