#include "SHOP_POVMaterial.h"
using namespace HDK_Sample;
static PRM_Name pigmentName(
"pigment",
"Pigment");
};
SHOP_POVMaterial::SHOP_POVMaterial(
OP_Network *parent,
{
}
SHOP_POVMaterial::~SHOP_POVMaterial()
{
}
void
{
for (int i = 0; i < 3; ++i)
clr(i) = evalFloat("pigment", i, time);
}
bool
{
renderer = "POV";
if (renderer == "POV")
{
pigment(clr, now);
tmp.
sprintf(
"texture { pigment { color rgb <%g, %g, %g> } }",
clr(0), clr(1), clr(2));
}
else if (renderer == "VMantra")
{
tmp.
sprintf(
"plastic diff ( %g %g %g )", clr(0), clr(1), clr(2));
}
}
bool
{
obj, sop, interpret_type);
}
{
}
{
return new SHOP_POVMaterial(net, name, entry);
}
void
{
theConstructor,
theTemplates,
nullptr,
0, 0,
}