Merge remote-tracking branch 'origin/gi'
# Conflicts: # Source/Engine/Renderer/GlobalSignDistanceFieldPass.cpp
This commit is contained in:
@@ -42,6 +42,8 @@ void DirectionalLight::Draw(RenderContext& renderContext)
|
||||
data.ShadowsMode = ShadowsMode;
|
||||
data.CascadeCount = CascadeCount;
|
||||
data.ContactShadowsLength = ContactShadowsLength;
|
||||
data.StaticFlags = GetStaticFlags();
|
||||
data.ID = GetID();
|
||||
renderContext.List->DirectionalLights.Add(data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,6 +134,8 @@ void PointLight::Draw(RenderContext& renderContext)
|
||||
data.ContactShadowsLength = ContactShadowsLength;
|
||||
data.IndirectLightingIntensity = IndirectLightingIntensity;
|
||||
data.IESTexture = IESTexture ? IESTexture->GetTexture() : nullptr;
|
||||
data.StaticFlags = GetStaticFlags();
|
||||
data.ID = GetID();
|
||||
renderContext.List->PointLights.Add(data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,6 +116,8 @@ void SkyLight::Draw(RenderContext& renderContext)
|
||||
data.IndirectLightingIntensity = IndirectLightingIntensity;
|
||||
data.Radius = GetScaledRadius();
|
||||
data.Image = GetSource();
|
||||
data.StaticFlags = GetStaticFlags();
|
||||
data.ID = GetID();
|
||||
renderContext.List->SkyLights.Add(data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,6 +187,8 @@ void SpotLight::Draw(RenderContext& renderContext)
|
||||
data.IESTexture = IESTexture ? IESTexture->GetTexture() : nullptr;
|
||||
Float3::Transform(Float3::Up, GetOrientation(), data.UpVector);
|
||||
data.OuterConeAngle = outerConeAngle;
|
||||
data.StaticFlags = GetStaticFlags();
|
||||
data.ID = GetID();
|
||||
renderContext.List->SpotLights.Add(data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user