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