codingmonkey
Hi folks!
I’m try to set new value for material.shaderParameters(“MatDiffColor”)
StaticModel@ model = cast<StaticModel>(firstDrawable);
if (model !is null)
{
WeakHandle mat = model.materials[0];
//Material@ mat = model.material;
if (mat.Get() !is null)
{
Material@ m = mat.Get();
m.shaderParameters["MatDiffColor"] = Variant(c);
//model.material = mat;
}
}
[pastebin]pHzdHMgc[/pastebin]
and got an error when I try to open Material Editor, after color changing, this happen only for static model with material and not happened with light and zones. But why this happen with material or static model ? am also trying change mat parameter through weakHangle but this not helped.
console error screen