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/gpu/GPU_material.h | |
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/gpu/GPU_material.h')
-rw-r--r-- | source/blender/gpu/GPU_material.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_material.h b/source/blender/gpu/GPU_material.h index b12a59f607d..ec50bd9d9f5 100644 --- a/source/blender/gpu/GPU_material.h +++ b/source/blender/gpu/GPU_material.h @@ -76,6 +76,8 @@ typedef enum GPUType { GPU_MAT3 = 9, GPU_MAT4 = 16, + GPU_CLOSURE = 17, + GPU_TEX2D = 1002, GPU_SHADOW2D = 1003, GPU_TEXCUBE = 1004, |