Map a texture to Material Ambient factor didn't work. 
Probably not since 2.42 or so... :)
This commit is contained in:
Ton Roosendaal 2009-05-03 12:06:43 +00:00
parent 12a5c03d16
commit b89126dbe8

@ -2031,6 +2031,10 @@ void do_material_tex(ShadeInput *shi)
shi->amb= texture_value_blend(mtex->def_var, shi->amb, texres.tin, varfac, mtex->blendtype, flip);
if(shi->amb<0.0) shi->amb= 0.0;
else if(shi->amb>1.0) shi->amb= 1.0;
shi->ambr= shi->amb*R.wrld.ambr;
shi->ambg= shi->amb*R.wrld.ambg;
shi->ambb= shi->amb*R.wrld.ambb;
}
}
}