mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-22 08:03:45 +00:00
simplification
This commit is contained in:
parent
df6b7f3351
commit
003c79132e
1 changed files with 7 additions and 7 deletions
|
|
@ -293,13 +293,13 @@ float4 main( PFXVertToPix IN ) : SV_TARGET
|
|||
{
|
||||
if (probes[i].contribution == 0)
|
||||
continue;
|
||||
|
||||
if (probes[i].type < 2) //non-skylight
|
||||
{
|
||||
irradiance += iblBoxDiffuse(surface, probes[i]);
|
||||
specular += F*iblBoxSpecular(surface, probes[i]);
|
||||
contrib +=probes[i].contribution;
|
||||
}
|
||||
|
||||
if (probes[i].type == 2) //skip skylight
|
||||
continue;
|
||||
|
||||
irradiance += iblBoxDiffuse(surface, probes[i]);
|
||||
specular += F*iblBoxSpecular(surface, probes[i]);
|
||||
contrib +=probes[i].contribution;
|
||||
}
|
||||
contrib = saturate(contrib);
|
||||
irradiance = lerp(iblSkylightDiffuse(surface, probes[skyID]),irradiance,contrib);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue