This commit is contained in:
Dynamitos
2023-11-13 13:48:01 +01:00
parent 9a26fd75ca
commit 59d6c9d794
3 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ struct BlinnPhong : IBRDF
float3 h = normalize(lightDir_TS + viewDir_TS);
float nDotH = saturate(dot(normal, h));
return baseColor;
return baseColor * (nDotL + nDotH) * lightColor;
}
};