[Maya2osg-users] Specular color when a specular map is attached
Status: Alpha
Brought to you by:
jtaibo
|
From: Jean-Sébastien G. <jea...@cm...> - 2011-06-21 16:03:26
|
Hi guys,
When a specular map is attached, Maya starts returning specularColor =
BLACK to the plugin. This is not correct, since we need the color
multiplied by the specular roll off in the case of blinn, and we will
want to multiply the material's specular color by the specular map in
the shader. So like the Diffuse color (which is set to WHITE when a
diffuse texture is attached), when there is a specular map attached, the
specular color should be set to WHITE.
Attached is a fix for this.
Thanks,
J-S
--
______________________________________________________
Jean-Sebastien Guay jea...@cm...
http://www.cm-labs.com/
http://whitestar02.dyndns-web.com/
|