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:
authorClément Fukhaut <turjuque@gmail.com>2016-02-15 00:42:20 +0300
committerClément Fukhaut <turjuque@gmail.com>2016-02-15 00:42:20 +0300
commit8de5664a6064c664a1cb569d55ad98336a134388 (patch)
treef6de1728e2c20e410d7806e98ad3fc869cf7adc1 /source/blender/gpu/intern/gpu_codegen.c
parent52cb2981c410f542f7695fdaf76547d383c26daf (diff)
Added support for custom number of samples for brdfs.
Diffstat (limited to 'source/blender/gpu/intern/gpu_codegen.c')
-rw-r--r--source/blender/gpu/intern/gpu_codegen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c
index b2c97764fd3..70bb58b0f66 100644
--- a/source/blender/gpu/intern/gpu_codegen.c
+++ b/source/blender/gpu/intern/gpu_codegen.c
@@ -1647,7 +1647,8 @@ GPUPass *GPU_generate_pass(
GPUVertexAttribs *attribs, int *builtins,
const GPUMatType type, const char *UNUSED(name),
const bool use_opensubdiv,
- const bool use_new_shading)
+ const bool use_new_shading,
+ const int samplecount)
{
GPUShader *shader;
GPUPass *pass;
@@ -1686,7 +1687,8 @@ GPUPass *GPU_generate_pass(
0,
0,
0,
- flags);
+ flags,
+ samplecount);
/* failed? */
if (!shader) {