Tempest
26-10-2005 01:49:00
I'm trying to get Cel Shading to work with OgreDotNet. From the C++ examples I've seen you have to do the following:
However, "setCustomParameter" isn't a function of EntitySub in OgreDotNet.
When I just call SetMaterialName, everything appears completely black. -- I'm thinking this is because the CustomParameters aren't being set.
Thanks again,
sub = ent->getSubEntity(0);
sub->setMaterialName("Examples/CelShading");
sub->setCustomParameter(CUSTOM_SHININESS, Vector4(35.0f, 0.0f, 0.0f, 0.0f));
sub->setCustomParameter(CUSTOM_DIFFUSE, Vector4(1.0f, 0.3f, 0.3f, 1.0f));
sub->setCustomParameter(CUSTOM_SPECULAR, Vector4(1.0f, 0.6f, 0.6f, 1.0f));
However, "setCustomParameter" isn't a function of EntitySub in OgreDotNet.
When I just call SetMaterialName, everything appears completely black. -- I'm thinking this is because the CustomParameters aren't being set.
Thanks again,