Lot more Metal changes

This commit is contained in:
Dynamitos committed 2024-08-28 17:54:14 +02:00
1 parent e3b06dfb22
commit 6eb114e892
40 files changed
+1634 -1737

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ float Beckmann(float ndoth, float roughness) {
}
[shader("pixel")]
float4 main(WaterVertex vert) : SV_TARGET {
float4 fragmentMain(WaterVertex vert) : SV_TARGET {
float3 lightDir = -normalize(pWaterMaterial.sunDirection);
float3 viewDir = normalize(pViewParams.cameraPos_WS.xyz - vert.position_WS);
float3 halfwayDir = normalize(lightDir + viewDir);