Merge pull request #1355 from Azaezel/alpha41/roughTime

roughness was ramping up mip levels too slowly
This commit is contained in:
Brian Roberts 2025-01-09 10:50:01 -06:00 committed by GitHub
commit 6b1a811689
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -281,7 +281,7 @@ float computeSpecOcclusion( float NdotV , float AO , float roughness )
float roughnessToMipLevel(float roughness, float numMips)
{
return roughness * numMips;
return pow(abs(roughness),0.25) * numMips;
}
vec4 compute4Lights( Surface surface,

View file

@ -282,7 +282,7 @@ float computeSpecOcclusion( float NdotV , float AO , float roughness )
float roughnessToMipLevel(float roughness, float numMips)
{
return roughness * numMips;
return pow(abs(roughness),0.25) * numMips;
}
float4 compute4Lights( Surface surface,