Trying to add opacity

This commit is contained in:
Dynamitos committed 2024-07-16 16:44:56 +02:00
1 parent 60e74f87b8
commit f55a2a03d2
7 files changed
+47 -14

No files matched your search

+1 -1
View File
@@ -34,6 +34,6 @@ float4 fragmentMain(in FragmentParameter params) : SV_Target
// gamma correction
result = result / (result + float3(1.0));
result = pow(result, float3(1.0/2.2));
return float4(result, 1.0f);
return float4(result, brdf.getAlpha());
}