Blender Git Commit Log

Git Commits -> Revision d35d0e3

Revision d35d0e3 by Nicholas Bishop (master)
May 10, 2012, 20:36 (GMT)
Add mask-drawing support to GPU_Buffers.

This is the last commit of the sculpt masking merge. Documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/PaintMasks

Thanks to Brecht for reviewing!

* For VBO, add color to the VertexBufferFormat structure as three
unsigned bytes. Since mask elements are scalar the three color
components are identical to eachother, but the fixed-function OpenGL
pipeline requires colors to be either three or four components.

* For the same reason, multires VBO drawing now copies into the
VertexBufferFormat format as well.

* Regression: material colors will not show up correctly now, masks
colors are overriding. Not sure how to fix this nicely (would be
much easier to fix if drawing with vertex shaders.)

* Also, masks will only draw PBVH drawing, so only 'solid' drawing
will work correctly with masks.

Commit Details:

Full Hash: d35d0e38ce3ab421880b01fe5e80cb61a1323c45
SVN Revision: 46532
Parent Commit: 3ee0305
Lines Changed: +144, -9

3 Modified Paths:

/source/blender/blenlib/intern/pbvh.c (+3, -1) (Diff)
/source/blender/gpu/GPU_buffers.h (+1, -1) (Diff)
/source/blender/gpu/intern/gpu_buffers.c (+140, -7) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021