mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2025-03-15 07:01:34 +00:00
fixed HLSL out variables not always being set
This commit is contained in:
parent
26bfe007c1
commit
68d32e69e9
1 changed files with 2 additions and 0 deletions
|
@ -117,6 +117,7 @@ struct ExtinctionCascade
|
|||
|
||||
bool ExtinctionAtMip(float3 position, uint mip, out float ext)
|
||||
{
|
||||
ext = 0.0;
|
||||
if(lowestMipLevel == mip)
|
||||
{
|
||||
float3 tc0 = AABoxWorldSpaceToTC(position, cameraPosition, textureSize, worldScale[mip + 0]);
|
||||
|
@ -196,6 +197,7 @@ struct SunVShadowCascade
|
|||
|
||||
bool TransmittanceAtMip(float3 position, uint mip, out float ext)
|
||||
{
|
||||
ext = 0.0;
|
||||
if(lowestMipLevel == mip)
|
||||
{
|
||||
float3 tc0 = AABoxWorldSpaceToTC(position, cameraPosition, textureSize, worldScale[mip + 0]);
|
||||
|
|
Loading…
Reference in a new issue