deweese     01/10/11 07:04:39

  Modified:    sources/org/apache/batik/ext/awt/image/rendered
                        SpecularLightingRed.java
  Log:
  Bug fix for feDistant light case.
  
  Revision  Changes    Path
  1.11      +4 -1      
xml-batik/sources/org/apache/batik/ext/awt/image/rendered/SpecularLightingRed.java
  
  Index: SpecularLightingRed.java
  ===================================================================
  RCS file: 
/home/cvs/xml-batik/sources/org/apache/batik/ext/awt/image/rendered/SpecularLightingRed.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- SpecularLightingRed.java  2001/10/10 17:18:27     1.10
  +++ SpecularLightingRed.java  2001/10/11 14:04:39     1.11
  @@ -25,7 +25,7 @@
   /**
    * 
    * @author <a href="mailto:[EMAIL PROTECTED]";>Vincent Hardy</a>
  - * @version $Id: SpecularLightingRed.java,v 1.10 2001/10/10 17:18:27 deweese Exp $
  + * @version $Id: SpecularLightingRed.java,v 1.11 2001/10/11 14:04:39 deweese Exp $
    */
   public class SpecularLightingRed extends AbstractTiledRed{
       /**
  @@ -210,6 +210,9 @@
                       a = (int)(mult*Math.pow(N[0]*L[0] + N[1]*L[1] + N[2]*L[2], 
                                               specularExponent) + 0.5);
                       
  +                    if ((a & 0xFFFFFF00) != 0)
  +                        a = ((a & 0x80000000) != 0)?0:255;
  +
                       pixels[p++] = (a << 24 | pixel);
                   }
                   p += adjust;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to