Page MenuHome

Blender 2.8: OpenGL: new immediate mode for paint_image.c
ClosedPublic

Authored by Willian Padovani Germano (ianwill) on Oct 19 2016, 9:07 PM.

Details

Summary

This one is for the straight line (white with width 2.0 over a black with width 4.0) drawn when you use the gradient tool.

To test: Image editor, create / open an image, choose image paint mode and on the tool shelf: choose the Fill brush and enable "Use Gradient" for it. Then click and drag on the image.

From what I checked, calls to glLineWidth are not being removed yet, so I kept them.

Diff Detail

Repository
rB Blender

Event Timeline

Mike Erwin (merwin) edited edge metadata.

This looks good.

We'll have to deal with wide lines later. Easily solved with a geometry shader (especially 2D lines like here) but we shouldn't use geometry shaders much until Mac catches up.

This revision is now accepted and ready to land.Oct 20 2016, 3:34 AM

Landed in blender2.8