diff options
author | Dontsov Valentin <@blend4web.com> | 2014-11-09 17:22:44 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-11-09 17:35:08 +0300 |
commit | 8c712eaa297162669fc0be849da115dd8db400d5 (patch) | |
tree | a1cc56d8250943caafbe9dc53caed19c49d373ca /source/blender/nodes | |
parent | aac2db33df448f87431629b794c47c7ad1da044e (diff) |
GLSL: specular transparency support for Blender internal materials
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D781
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/shader/nodes/node_shader_material.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_material.c b/source/blender/nodes/shader/nodes/node_shader_material.c index 79d66495ad7..b7e10c7e9df 100644 --- a/source/blender/nodes/shader/nodes/node_shader_material.c +++ b/source/blender/nodes/shader/nodes/node_shader_material.c @@ -267,6 +267,8 @@ static int gpu_shader_material(GPUMaterial *mat, bNode *node, bNodeExecData *UNU shi.amb = gpu_get_input_link(&in[MAT_IN_AMB]); if (hasinput[MAT_IN_EMIT]) shi.emit = gpu_get_input_link(&in[MAT_IN_EMIT]); + if (hasinput[MAT_IN_SPECTRA]) + shi.spectra = gpu_get_input_link(&in[MAT_IN_SPECTRA]); if (hasinput[MAT_IN_ALPHA]) shi.alpha = gpu_get_input_link(&in[MAT_IN_ALPHA]); } |