diff options
author | RunitaiLinden <davep@lindenlab.com> | 2024-02-01 13:50:47 -0600 |
---|---|---|
committer | RunitaiLinden <davep@lindenlab.com> | 2024-02-01 13:50:47 -0600 |
commit | 169562bf13ca6ed47dac1e73c6d8e72cd89861eb (patch) | |
tree | 8f5f91b29a1932499fe7970abdbdce2ecdec81ea /indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl | |
parent | ac76b1b2565b2a5f812eaa12cf309afd4aed9410 (diff) |
#677 WIP -- Add clipping to alpha and pbr (not working on PBR for some reason)
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl b/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl index acd32a81b3..4aef22c296 100644 --- a/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl +++ b/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl @@ -78,6 +78,8 @@ float sampleDirectionalShadow(vec3 pos, vec3 norm, vec2 pos_screen); float getAmbientClamp(); +void mirrorClip(vec3 pos); + void sampleReflectionProbesLegacy(inout vec3 ambenv, inout vec3 glossenv, inout vec3 legacyenv, vec2 tc, vec3 pos, vec3 norm, float glossiness, float envIntensity, bool transparent, vec3 amblit_linear); @@ -167,6 +169,8 @@ vec3 calcPointLightOrSpotLight(vec3 light_col, vec3 diffuse, vec3 v, vec3 n, vec void main() { + mirrorClip(vary_position); + vec2 frag = vary_fragcoord.xy/vary_fragcoord.z*0.5+0.5; vec4 pos = vec4(vary_position, 1.0); |