diff options
author | Dave Parks <davep@lindenlab.com> | 2022-09-06 15:07:22 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-09-06 15:07:22 -0500 |
commit | abf788175c451046f82cc9aeaddc894c47863ffa (patch) | |
tree | 54138d2f36281e782bfad0f84f460c2a94be4da2 /indra/newview/app_settings/shaders | |
parent | ef2eecca2737a3c9d71ef4097c76d2dd0f52df3d (diff) |
SL-18096 WIP -- partial support for double sided rendering. Shadow map and picking support TBD.
Diffstat (limited to 'indra/newview/app_settings/shaders')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl b/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl index 7a13abc7e8..f5b5698305 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl @@ -153,6 +153,8 @@ void main() col.rgb = vary_position.xyz; #endif + tnorm *= gl_FrontFacing ? 1.0 : -1.0; + // See: C++: addDeferredAttachments(), GLSL: softenLightF frag_data[0] = vec4(col, 0.0); // Diffuse frag_data[1] = vec4(emissive, vertex_color.a); // PBR sRGB Emissive |