hi how do i change an ambient light in realtime i added it at using the normal -ambientlight args
for gamma i was able to add extra function in like
void setgamma(float gamma)
{
g_device->rtSetFloat1(g_tonemapper, "gamma", gamma);
g_device->rtCommit(g_tonemapper);
}
and it works fine but the lights are added as a primative and im not so sure how to go about this also how would i change a material color also along these lines
many thanks


