diff options
author | Drake Arconis <lightdrake@gmail.com> | 2022-09-06 16:33:06 +0000 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-09-06 16:33:06 +0000 |
commit | ef2eecca2737a3c9d71ef4097c76d2dd0f52df3d (patch) | |
tree | 1f5cc6dc8c61b425f91c9a8c4c27e6e0d27306e4 /indra | |
parent | caf95ed00b0d35e9071db157c68a57f09198a530 (diff) | |
parent | a15094ca3aa4a5b44c9bb98a4df732dad92fb01a (diff) |
Merged in 559-impostor-fixes (pull request #1122)
Fix impostor lighting and rendering after PBR changes to rendering pipeline
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl b/indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl index 67f4c59c3f..51afda2791 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl @@ -41,6 +41,7 @@ uniform sampler2D specularMap; VARYING vec2 vary_texcoord0; vec3 linear_to_srgb(vec3 c); +vec2 encode_normal (vec3 n); void main() { @@ -56,5 +57,5 @@ void main() frag_data[0] = vec4(col.rgb, 0.0); frag_data[1] = spec; - frag_data[2] = norm; // TODO: Should .w be set? + frag_data[2] = vec4(encode_normal(norm.xyz),0,GBUFFER_FLAG_HAS_ATMOS); } |