Refactor to recent matcap built-ins to not use the built in system.
authorAntony Riakiotakis <kalast@gmail.com>
Wed, 2 Apr 2014 12:07:45 +0000 (15:07 +0300)
committerAntony Riakiotakis <kalast@gmail.com>
Wed, 2 Apr 2014 12:08:04 +0000 (15:08 +0300)
commit965e5039f5d158c7c89d525e83b830f9ad10adc0
tree14c65dd638311dcec90f8d9ee56fcb4b738e6310
parent26b2645d62f3f60b0125dcb14a8daa03920a6031
Refactor to recent matcap built-ins to not use the built in system.
Those variables would get declared on fragment shader level and since we
use reserved opengl variables, some compilers would throw an error
(NVIDIA allows, some ATI compilers may break). Instead, use a separate
opengl built-in category especially for them. This works on NVIDIA, and
will wait for tests of this commit from ATI users.
source/blender/gpu/GPU_material.h
source/blender/gpu/intern/gpu_codegen.c
source/blender/gpu/intern/gpu_codegen.h
source/blender/gpu/intern/gpu_material.c