Changeset 494 for GraphicTest/Packages/bgrabitmap/phonglight.inc
- Timestamp:
- Dec 22, 2016, 8:49:19 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/Packages/bgrabitmap/phonglight.inc
r472 r494 2 2 var 3 3 {%H-}dist2,LdotN,NdotH,lightEnergy,diffuse : single; 4 const5 minus_05 = -0.5;6 4 begin 7 5 {$IFDEF BGRASSE_AVAILABLE}If UseSSE then … … 45 43 end; 46 44 47 if LdotN < minus_05 then NdotH := 0 else48 if LdotN < 0 then49 begin50 NdotH := NdotH*(LdotN-minus_05);51 NdotH += NdotH;52 end;53 54 45 {$IFDEF PARAM_POINTLIGHT} 55 46 if dist2 = 0 then … … 62 53 diffuse := LdotN; 63 54 {$ENDIF} 55 if diffuse < FMinIntensity then diffuse:= FMinIntensity; 64 56 65 57 if Context^.LightThrough and (diffuse < 0) then diffuse := -diffuse*Context^.LightThroughFactor;
Note:
See TracChangeset
for help on using the changeset viewer.