diff options
author | Ptolemy <ptolemy@lindenlab.com> | 2022-08-24 17:26:23 -0700 |
---|---|---|
committer | Ptolemy <ptolemy@lindenlab.com> | 2022-08-24 17:26:23 -0700 |
commit | 980e8c0a396291dab00fce148a3c7e304a541f10 (patch) | |
tree | 9104fcb16d5747e2072c294edf227f385cbdf799 /indra/newview/app_settings | |
parent | becdf08d0f79a1a676fdc51d5c889dbab5954832 (diff) |
DRTVWR-559: Cleanup
Diffstat (limited to 'indra/newview/app_settings')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl b/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl index a49713afce..777021cd53 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl @@ -446,7 +446,7 @@ void initMaterial( vec3 diffuse, vec3 packedORM, out float alphaRough, out vec3 // When roughness is zero blender shows a tiny specular float perceptualRough = max(packedORM.g, 0.1); - alphaRough = perceptualRough * perceptualRough; + alphaRough = perceptualRough * perceptualRough; } vec3 BRDFDiffuse(vec3 color) @@ -461,8 +461,8 @@ vec3 BRDFLambertian( vec3 reflect0, vec3 reflect90, vec3 c_diff, float specWeigh vec3 BRDFSpecularGGX( vec3 reflect0, vec3 reflect90, float alphaRough, float specWeight, float vh, float nl, float nv, float nh ) { - vec3 fresnel = fresnelSchlick( reflect0, reflect90, vh ); - float vis = V_GGX( nl, nv, alphaRough ); - float d = D_GGX( nh, alphaRough ); + vec3 fresnel = fresnelSchlick( reflect0, reflect90, vh ); // Fresnel + float vis = V_GGX( nl, nv, alphaRough ); // Visibility + float d = D_GGX( nh, alphaRough ); // Distribution return specWeight * fresnel * vis * d; } |