Trying to add opacity

This commit is contained in:
Dynamitos
2024-07-16 16:44:56 +02:00
parent 60e74f87b8
commit f55a2a03d2
7 changed files with 47 additions and 14 deletions
+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());
}