Skip to content

Commit

Permalink
Merge pull request #2915 from e2002e/taa_fix
Browse files Browse the repository at this point in the history
Fix for TAA with environment light.
  • Loading branch information
luboslenco authored Aug 17, 2023
2 parents 5116579 + 82a941d commit cf72c4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blender/arm/material/make_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def make_deferred(con_mesh, rpasses):
frag.write('vec2 posa = (wvpposition.xy / wvpposition.w) * 0.5 + 0.5;')
frag.write('vec2 posb = (prevwvpposition.xy / prevwvpposition.w) * 0.5 + 0.5;')
frag.write('fragColor[GBUF_IDX_2].rg = vec2(posa - posb);')
frag.write('fragColor[GBUF_IDX_2].b = 0.0;')

if mat_state.material.arm_ignore_irradiance:
frag.write('fragColor[GBUF_IDX_2].b = 1.0;')
Expand Down

0 comments on commit cf72c4d

Please sign in to comment.