Page MenuHome

draw region emboss with new immediate mode
ClosedPublic

Authored by Anthony Edlin (krash) on Oct 4 2016, 10:31 AM.

Details

Summary

Simple convert of drawing emboss lines to new immediate mode.

Part of T49043

Diff Detail

Event Timeline

Anthony Edlin (krash) retitled this revision from to draw region emboss with new immediate mode.
Anthony Edlin (krash) updated this object.
Anthony Edlin (krash) set the repository for this revision to rB Blender.
Mike Erwin (merwin) edited edge metadata.

Looks good! Challenge: get it down from 8 vertices to 5 with a GL_LINE_STRIP.

(could get it down to 4 with GL_LINE_LOOP but Vulkan doesn't have line loops)

This revision is now accepted and ready to land.Oct 4 2016, 1:07 PM

Out of curiosity, did you use arcanist to send the patch? I can't apply the patch directly here. As for GL_LINE_STRIP I don't think you can do it with 5 vertices, given that the color change for half the lines.

As for GL_LINE_STRIP I don't think you can do it with 5 vertices, given that the color change for half the lines.

You totally can since GPU_SHADER_2D_FLAT_COLOR uses the color of each line segment's provoking vertex.

Anthony Edlin (krash) edited edge metadata.
Anthony Edlin (krash) removed rB Blender as the repository for this revision.

New diff with only 5 verts as suggested.

I noticed while fooling with this that it doesn't work in double pixel mode for retina like displays on linux, but it didn't work before either.

I didn't use Arc, just uploaded a diff file.

Perfect! @Anthony Edlin (krash) can you commit this, or should one of us do it & give you credit?

Anthony Edlin (krash) set the repository for this revision to rB Blender.Oct 8 2016, 5:17 AM
Anthony Edlin (krash) added a comment.EditedOct 8 2016, 5:19 AM

I can't commit anything as far as I know.

Done! Landed in blender2.8