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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-07-28 16:56:34 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-07-28 16:57:14 +0300
commit971affb4366634da35a7d9637243d451f0b227e2 (patch)
tree714500dd7456450d67af9cc50471bab3d9318bd4 /source/blender/gpu
parentbe047fe455b8a289b2ebc43af81374510c0b6a06 (diff)
Fix T45590: Some more missing glsl functions
Also SSS node was using wrong Normal input index.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_material.glsl5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index ea7ab054234..54864b2b185 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -2267,6 +2267,11 @@ void node_bsdf_refraction(vec4 color, float roughness, float ior, vec3 N, out ve
node_bsdf_diffuse(color, 0.0, N, result);
}
+void node_ambient_occlusion(vec4 color, out vec4 result)
+{
+ result = color;
+}
+
/* emission */
void node_emission(vec4 color, float strength, vec3 N, out vec4 result)