This patch fixes T75938 by setting useMatcap for the workbench prepass fragment shader. This results in a correct assignment of materialData.a = float(gl_FrontFacing); in workbench_prepass_frag.glsl when matcaps are used.
Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
- Branch
- 2020-04-21-fix-workbench-matcap-normals (branched from master)
- Build Status
Buildable 7666 Build 7666: arc lint + arc unit
Event Timeline
| source/blender/draw/engines/workbench/workbench_opaque.c | ||
|---|---|---|
| 94 | I think you need it here too. | |
| source/blender/draw/engines/workbench/workbench_opaque.c | ||
|---|---|---|
| 94 | As far as I could tell, it worked fine when adding it only to the vertex color shader group. There's no harm adding it here as well though. | |