[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49925] branches/ge_harmony/source/blender /gpu/shaders/gpu_shader_light_frag.glsl: A small change to the light shader to better match the forward rendering' s shading.
Daniel Stokes
kupomail at gmail.com
Thu Aug 16 00:15:37 CEST 2012
Revision: 49925
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49925
Author: kupoman
Date: 2012-08-15 22:15:37 +0000 (Wed, 15 Aug 2012)
Log Message:
-----------
A small change to the light shader to better match the forward rendering's shading.
Modified Paths:
--------------
branches/ge_harmony/source/blender/gpu/shaders/gpu_shader_light_frag.glsl
Modified: branches/ge_harmony/source/blender/gpu/shaders/gpu_shader_light_frag.glsl
===================================================================
--- branches/ge_harmony/source/blender/gpu/shaders/gpu_shader_light_frag.glsl 2012-08-15 22:08:22 UTC (rev 49924)
+++ branches/ge_harmony/source/blender/gpu/shaders/gpu_shader_light_frag.glsl 2012-08-15 22:15:37 UTC (rev 49925)
@@ -23,7 +23,7 @@
vec3 L;
float attenuation = 1.0;
- vec3 N = texture2D(prepass1, gl_TexCoord[0].st).rgb;
+ vec3 N = normalize(texture2D(prepass1, gl_TexCoord[0].st).rgb);
vec3 V = texture2D(prepass2, gl_TexCoord[0].st).rgb;
if (light.type == SUN || light.type == HEMI)
More information about the Bf-blender-cvs
mailing list