Ignore:
Timestamp:
Dec 22, 2016, 8:49:19 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Updated BGRABitmap package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GraphicTest/Packages/bgrabitmap/phonglight.inc

    r472 r494  
    22var
    33  {%H-}dist2,LdotN,NdotH,lightEnergy,diffuse : single;
    4 const
    5   minus_05 = -0.5;
    64begin
    75  {$IFDEF BGRASSE_AVAILABLE}If UseSSE then
     
    4543  end;
    4644
    47   if LdotN < minus_05 then NdotH := 0 else
    48   if LdotN < 0 then
    49   begin
    50     NdotH := NdotH*(LdotN-minus_05);
    51     NdotH += NdotH;
    52   end;
    53 
    5445  {$IFDEF PARAM_POINTLIGHT}
    5546  if dist2 = 0 then
     
    6253  diffuse := LdotN;
    6354  {$ENDIF}
     55  if diffuse < FMinIntensity then diffuse:= FMinIntensity;
    6456
    6557  if Context^.LightThrough and (diffuse < 0) then diffuse := -diffuse*Context^.LightThroughFactor;
Note: See TracChangeset for help on using the changeset viewer.