Blender Git Loki

Git Commits -> Revision 1a4e7b1

Revision 1a4e7b1 by Scurest (master)
May 17, 2021, 17:56 (GMT)
Collada import: respect zero-specularity

Collada shaders with black <specular> should import with Specular=0.
(A missing <specular> is the same as black.)

The general specular conversion is hard, but this case is common and easy.
Fixes the specular for all <constant>/<lambert> shaders, and <blinn>/<phong>
shaders with black/omitted <specular>. Before this they all looked too "shiny".

Reviewed By: gaiaclary

Differential Revision: https://developer.blender.org/D10939

Commit Details:

Full Hash: 1a4e7b16b2640750f6dfe380218aba028f998ae1
Parent Commit: a86e815
Committed By: Gaia Clary
Lines Changed: +19, -3

1 Modified Path:

/source/blender/io/collada/Materials.cpp (+19, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021