[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11539] branches/soc-2007-maike/source/ blender/src/glsl_uniforms.c: Spotbl bugfix, now the passing from illuminated pixels to dark pixels is smoother
Miguel Torres Lima
torreslima at gmail.com
Fri Aug 10 19:08:48 CEST 2007
Revision: 11539
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11539
Author: maike
Date: 2007-08-10 19:08:48 +0200 (Fri, 10 Aug 2007)
Log Message:
-----------
Spotbl bugfix, now the passing from illuminated pixels to dark pixels is smoother
Modified Paths:
--------------
branches/soc-2007-maike/source/blender/src/glsl_uniforms.c
Modified: branches/soc-2007-maike/source/blender/src/glsl_uniforms.c
===================================================================
--- branches/soc-2007-maike/source/blender/src/glsl_uniforms.c 2007-08-10 16:56:19 UTC (rev 11538)
+++ branches/soc-2007-maike/source/blender/src/glsl_uniforms.c 2007-08-10 17:08:48 UTC (rev 11539)
@@ -512,7 +512,7 @@
if(lamp->type == LA_SPOT){
glUniform1f(glsl_uniform_location(program, spotsize), cos(M_PI * lamp->spotsize / 360.0));
- glUniform1f(glsl_uniform_location(program, spotblend), (1.0 - lamp->spotsize) * lamp->spotblend);
+ glUniform1f(glsl_uniform_location(program, spotblend), (1.0 - cos(M_PI * lamp->spotsize / 360.0)) * lamp->spotblend);
if(lamp->mode & LA_SQUARE){
More information about the Bf-blender-cvs
mailing list