|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#ifndef DIFFUSE_LAMBERT_BRDF |
|
|
|
// TODO: verify that we do not need to multiply by PI. |
|
|
|
ltcValue *= preLightData.ltcDisneyDiffuseMagnitude; |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
ltcValue *= lightData.specularScale; |
|
|
|
specularLighting = fresnelTerm * lightData.color * ltcValue; |
|
|
|
} |
|
|
|
|
|
|
|
// TODO: current area light code doesn't take into account artist attenuation radius! |
|
|
|
|
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|