Use slang's stdlib fn

This commit is contained in:
Sascha Willems 2025-06-02 22:09:03 +02:00
parent 0913307646
commit 49c7834196

View file

@ -105,7 +105,7 @@ FSOutput fragmentMain(VSOutput input)
fresnel *= (1.0 - F0);
fresnel += F0;
float spec = (fresnel * geoAtt) / (NdotV * NdotL * 3.14);
float spec = (fresnel * geoAtt) / (NdotV * NdotL * float.getPi());
color = samplerEnvMap.Sample(reflect(-wViewVec, wNormal));