Hi.
I wrote selected color Script and work very well. I want set one color for each car. (e.g: Dyane = Brown, BMW = Yellow, ...). I wrote this script for set custom color after first run but all cars get one color.(All cars Get color of the First car.)
Please Gude Me for fix it
Thanks.
I wrote selected color Script and work very well. I want set one color for each car. (e.g: Dyane = Brown, BMW = Yellow, ...). I wrote this script for set custom color after first run but all cars get one color.(All cars Get color of the First car.)
Please Gude Me for fix it
Thanks.
Code: [Select]
void Main()
{
if (iInitializing ())
{
iShaderFloat3Set(OBJ_0,"cColor", 0.55, 0.39, 0.66);
iShaderFloat3Set(OBJ_22,"cColor", 1.0, 1.0, 1.0);
iShaderFloat3Set(OBJ_44,"cColor", 0.0, 0.60, 0.30);
iShaderFloat3Set(OBJ_66,"cColor", 1.0, 1.0, 1.0);
iShaderFloat3Set(OBJ_88,"cColor", 1.0, 1.0, 1.0);
iShaderFloat3Set(OBJ_110,"cColor", 1.0, 1.0, 1.0);
iShaderFloat3Set(OBJ_132,"cColor", 1.0, 1.0, 1.0);
iShaderFloat3Set(OBJ_154,"cColor", 1.0, 1.0, 1.0);
}
}