[Bf-blender-cvs] [15e756c] master: Fix wrong Cycles GLSL pointiness, still not supported but should be neutral 0.5.

Brecht Van Lommel noreply at git.blender.org
Sat Oct 1 14:51:37 CEST 2016


Commit: 15e756c5841db71d1b0c308f0b9c12e468f137bd
Author: Brecht Van Lommel
Date:   Sat Oct 1 14:44:11 2016 +0200
Branches: master
https://developer.blender.org/rB15e756c5841db71d1b0c308f0b9c12e468f137bd

Fix wrong Cycles GLSL pointiness, still not supported but should be neutral 0.5.

===================================================================

M	source/blender/gpu/shaders/gpu_shader_material.glsl

===================================================================

diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index 119bfb6..67da820 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -2705,7 +2705,7 @@ void node_geometry(
 
 	parametric = vec3(0.0);
 	backfacing = (gl_FrontFacing) ? 0.0 : 1.0;
-	pointiness = 0.0;
+	pointiness = 0.5;
 }
 
 void node_tex_coord(




More information about the Bf-blender-cvs mailing list