Something like this?

MATAERIAL* mat;
mat = mtl_create();
mat.ambient_blue = 255;
Etc...
effect_load(&mat, "shader.fx");
myent->material = mat;