Skip to content

Commit 49c7834

Browse files
committed
Use slang's stdlib fn
1 parent 0913307 commit 49c7834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shaders/slang/hdr/gbuffer.slang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ FSOutput fragmentMain(VSOutput input)
105105
fresnel *= (1.0 - F0);
106106
fresnel += F0;
107107

108-
float spec = (fresnel * geoAtt) / (NdotV * NdotL * 3.14);
108+
float spec = (fresnel * geoAtt) / (NdotV * NdotL * float.getPi());
109109

110110
color = samplerEnvMap.Sample(reflect(-wViewVec, wNormal));
111111

0 commit comments

Comments
 (0)