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:
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_material.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_material.glsl9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index 7e4312e21e0..65c0bcb3c63 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -2206,6 +2206,15 @@ void node_light_falloff(float strength, float tsmooth, out float quadratic, out
constant = strength;
}
+void node_object_info(out vec3 location, out float object_index, out float material_index, out float random)
+{
+ location = vec3(0.0);
+ object_index = 0.0;
+ material_index = 0.0;
+ random = 0.0;
+}
+
+
/* output */
void node_output_material(vec4 surface, vec4 volume, float displacement, out vec4 result)