Thread: PLugin writing
View Single Post
Old 26th September 2013, 07:52 AM   #2
Geoffm
Junior Member
Member
 
Geoffm's Avatar
 
Join Date: Aug 2013
Location: London UK
Posts: 22
Default Re: PLugin writing

Aha I answer my own question.

ACrgb blck;
blck.r= blck.g=blck.b=0;
ACMaterial *num = ac_new_material_rgb(thergb); // material diffuse colour
ac_entity_set_float_value((ACEntity *)num, "shininess", 2.0);
ac_entity_set_rgb_value((ACEntity *)num, "specular", &blck);

changes the new material to have shininess of 2 and no specular colour component.
Geoffm is offline   Reply With Quote