diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-07-03 22:39:52 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-07-03 23:08:33 +0300 |
commit | 2eef097831caf14634cc0fc6749b857096baf3da (patch) | |
tree | 95496ea9adf3ae5b9f7e62f09d00f913769c30d4 /source/blender/nodes/shader/node_shader_util.c | |
parent | 65b01014b99ce7c6de67046ed7b8ae244fdb51c3 (diff) |
GPU Codegen: Add new closure socket type.
This allow specialized shaders to redefine the closure interface to fit their needs.
For instance, Volumetric closure needs to pass more than one vec4 (absorption vec3, scattering vec3, anisotropy float).
Diffstat (limited to 'source/blender/nodes/shader/node_shader_util.c')
-rw-r--r-- | source/blender/nodes/shader/node_shader_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/shader/node_shader_util.c b/source/blender/nodes/shader/node_shader_util.c index 5bc97f13b41..8559765e315 100644 --- a/source/blender/nodes/shader/node_shader_util.c +++ b/source/blender/nodes/shader/node_shader_util.c @@ -163,7 +163,7 @@ void node_gpu_stack_from_data(struct GPUNodeStack *gs, int type, bNodeStack *ns) else if (type == SOCK_RGBA) gs->type = GPU_VEC4; else if (type == SOCK_SHADER) - gs->type = GPU_VEC4; + gs->type = GPU_CLOSURE; else gs->type = GPU_NONE; |