Blender Git Commit Log
Git Commits -> Revision 3ed49a8
Revision 3ed49a8 by Antonis Ryakiotakis (master) April 1, 2014, 16:27 (GMT) |
Make matcaps suck less This commit does various changes for matcaps: One is taking advantage of drawing with pbvh (which would only happen with dyntopo previously) and drawing with partial redraw during sculpting. The second one is support for masks. To make this work in the special case of multires, which uses flat shading, I use the only available flat shaded builtins in OpenGL 2.0 which are color and secondary color. Abusing colors in that way is also essential for flat shading to work if we are to use pbvh draw in multires, since it is the color that is being interpolated flatly, not the normal (which can only interpolated smoothly). The pbvh drawing code for multires used last triangle element's normal to compute the shading which would only produce smooth results. This could change if we did the shading in the vertex shader for flat shaded primitives, but this is more complex and makes it harder to have one shader to rule the mole. Also increased the brightness of the default diffuse color for sculpting. This should be useful since artists like to tweak the lighting settings and it will give them the full dynamic range of the lights, but also it helps with correct brightness of sculpted matcaps. Reviewers: brecht Differential Revision: https://developer.blender.org/D435 |
Commit Details:
Full Hash: 3ed49a810d469174d2c0233dcb03d249adc60056
Parent Commit: ad7980a
Lines Changed: +75, -20
8 Modified Paths:
/source/blender/blenkernel/intern/cdderivedmesh.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+5, -2) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+28, -2) (Diff)
/source/blender/gpu/GPU_material.h (+3, -1) (Diff)
/source/blender/gpu/intern/gpu_buffers.c (+5, -5) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+16, -0) (Diff)
/source/blender/gpu/intern/gpu_material.c (+5, -1) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+12, -8) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+5, -2) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+28, -2) (Diff)
/source/blender/gpu/GPU_material.h (+3, -1) (Diff)
/source/blender/gpu/intern/gpu_buffers.c (+5, -5) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+16, -0) (Diff)
/source/blender/gpu/intern/gpu_material.c (+5, -1) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+12, -8) (Diff)