Go to file
Antony Riakiotakis 3ed49a810d 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
2014-04-01 19:27:13 +03:00
build_files fix scons ffmpeg libraries for mingw32 2014-03-30 01:35:39 +02:00
doc BGE doc cleanup: Some small cleanups in the BGE docs: 2014-03-31 22:22:04 -07:00
extern Unbreak carve build for clang 2014-03-28 14:41:04 +06:00
intern Cycles: fix 3-5% performance regression in msvc builds caused by a typo in stackchecking flags. 2014-03-31 21:44:02 +04:00
release Fix T39378: Revert, Recover Last Session and Load Factory Settings have no prompt. 2014-04-01 18:00:07 +02:00
scons@59512aadd1 Revert changes to submodules 2014-03-10 15:17:22 +06:00
source Make matcaps suck less 2014-04-01 19:27:13 +03:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore .gitignore: Adding CMakeLists.txt.user for QtCreator users. 2014-01-26 17:52:14 -08:00
.gitmodules Initialize git submodules for addons, locales and scons 2013-11-15 12:19:08 +06:00
CMakeLists.txt Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define 2014-04-01 15:22:28 +11:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile Found another place where nproc can be used 2014-03-02 10:29:40 +01:00
SConstruct Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define 2014-04-01 15:22:28 +11:00