Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2016-11-02 21:52:11 +0300
committerDalai Felinto <dfelinto@gmail.com>2016-11-02 21:52:15 +0300
commitf87036e8a7dfd7c07af6360518cd4293b21a2632 (patch)
tree4372051ecdb4d5e6d8e8bae41b60fd89721c0655
parentf8a1255464951af1c720d1d928314827b46e2c98 (diff)
the maxz and minz shaders were not being compiledpbr-viewport
-rw-r--r--source/blender/gpu/intern/gpu_shader.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_shader.c b/source/blender/gpu/intern/gpu_shader.c
index 2434ecf01a4..a638a530444 100644
--- a/source/blender/gpu/intern/gpu_shader.c
+++ b/source/blender/gpu/intern/gpu_shader.c
@@ -887,6 +887,20 @@ GPUShader *GPU_shader_get_builtin_shader(GPUBuiltinShader shader)
NULL, NULL, NULL, 0, 0, 0);
retval = GG.shaders.point_uniform_size_uniform_color_outline_smooth_3D;
break;
+ case GPU_SHADER_MAXZ_DOWNSAMPLE:
+ if (!GG.shaders.maxz_downsample)
+ GG.shaders.maxz_downsample = GPU_shader_create(
+ datatoc_gpu_shader_downsample_maxz_vert_glsl, datatoc_gpu_shader_downsample_maxz_frag_glsl,
+ NULL, NULL, NULL, 0, 0, 0);
+ retval = GG.shaders.maxz_downsample;
+ break;
+ case GPU_SHADER_MINZ_DOWNSAMPLE:
+ if (!GG.shaders.minz_downsample)
+ GG.shaders.minz_downsample = GPU_shader_create(
+ datatoc_gpu_shader_downsample_maxz_vert_glsl, datatoc_gpu_shader_downsample_maxz_frag_glsl,
+ NULL, NULL, "#define MIN;\n", 0, 0, 0);
+ retval = GG.shaders.minz_downsample;
+ break;
}
exit: