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.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 f98d7b9f5bb..b89317da84a 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -3816,6 +3816,11 @@ void node_bevel(float radius, vec3 N, out vec3 result)
result = N;
}
+void node_displacement(float height, float dist, vec3 N, out vec3 result)
+{
+ result = height * dist * N;
+}
+
/* output */
void node_output_material(vec4 surface, vec4 volume, float displacement, out vec4 result)