Use slang's stdlib fn
This commit is contained in:
parent
0913307646
commit
49c7834196
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue