Page MenuHome

Fix T72124: LookDev Sphere Rendering
ClosedPublic

Authored by Jeroen Bakker (jbakker) on Dec 11 2019, 1:39 PM.

Details

Summary

Due to the refactoring of the overlay engine the draw caches were
changed. The sphere batch used to have positions and normals. After the
refactoring it didn't had the normals anymore. The normals are needed
for shading. As they were not there the look dev spheres were rendered
black.

This change add the nor attribute to DRW_cache_sphere_get batch.

Diff Detail

Repository
rB Blender

Event Timeline

Jeroen Bakker (jbakker) planned changes to this revision.Dec 11 2019, 1:51 PM

Add normals to vbo

Solved comments from code review:

  • Add the nor attribute to the VBO of the sphere. The DRW_cache_sphere_get is used for solid rendering (tracking + look dev).
source/blender/draw/intern/draw_cache.c
89

remove this on it is not used anymore

Removed unused field drw_sphere_nor from the DRWShapeCache.

Jeroen Bakker (jbakker) edited the summary of this revision. (Show Details)Dec 11 2019, 2:04 PM
This revision is now accepted and ready to land.Dec 12 2019, 2:33 PM
This revision was automatically updated to reflect the committed changes.