Page MenuHome

Fix T84658: Anisotropic BSDF - most modes not using Screen Space Reflection
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Feb 26 2021, 5:00 PM.

Details

Summary

Anisotropic is not really supported in Eevee, but since code looks like
it is just intended to make it behave like glossy, it should function
like it too.

Seems like the internal calling from node_bsdf_glossy from
node_bsdf_anisotropic has swapped arguments.
Also: ssr_id is available for SH_NODE_BSDF_ANISOTROPIC as well (see
ntree_tag_bsdf_cb), so why not use it?

Diff Detail

Repository
rB Blender
Branch
T84658 (branched from master)
Build Status
Buildable 13158
Build 13158: arc lint + arc unit

Event Timeline

Philipp Oeser (lichtwerk) requested review of this revision.Feb 26 2021, 5:00 PM
Philipp Oeser (lichtwerk) created this revision.
Clément Foucault (fclem) requested changes to this revision.Feb 27 2021, 9:09 PM
Clément Foucault (fclem) added inline comments.
source/blender/gpu/shaders/material/gpu_shader_material_anisotropic.glsl
8–9

Make that a const

9

Make that a const

16

this stub needs to be updated too.

This revision now requires changes to proceed.Feb 27 2021, 9:09 PM

make params const and update stub

Philipp Oeser (lichtwerk) marked 3 inline comments as done.Feb 28 2021, 9:09 PM

thx checking.
reg. const : might be worth a cleanup commit (seems it is not used consistent across files), but that is for another time.

Yes the const addition is quite new and is not everywhere. You can do the cleanup commit if you want.

This revision is now accepted and ready to land.Feb 28 2021, 9:52 PM