summaryrefslogtreecommitdiffstats
path: root/src/Runtime/res/effectlib/funcdiffuseReflectionWrapBSDF.glsllib
blob: 9afc58b49336fa5265ed9ce4753a452bbbb71940 (plain)
1
2
3
4
5
vec4 diffuseReflectionWrapBSDF(vec3 normalDir, in vec3 L, in vec3 lightDiffuse, float wrap)
{
    float I = max( 0.0, ((dot(L, normalDir) + wrap)/ (1.0 + wrap)) ); //diffuseIntensity
    return vec4( I * lightDiffuse, 1.0 );
}