Fixing adaptive incremental build.
Moved more functions into engine.cpp
This commit is contained in:
@@ -537,32 +537,6 @@ void JulietApplication::Update(float deltaTime)
|
||||
}
|
||||
}
|
||||
|
||||
void JulietApplication::OnPreRender(CommandList* /*cmd*/) {}
|
||||
|
||||
void JulietApplication::OnRender(RenderPass* pass, CommandList* cmd, const Camera& camera)
|
||||
{
|
||||
PushData pushData = {};
|
||||
pushData.ViewProjection = Camera_GetViewProjectionMatrix(camera);
|
||||
|
||||
#if 0
|
||||
if (enableGlobalLight)
|
||||
{
|
||||
pushData.GlobalLightDirection = Normalize({ globalLightDir[0], globalLightDir[1], globalLightDir[2] });
|
||||
pushData.GlobalLightColor = { globalLightColor[0], globalLightColor[1], globalLightColor[2] };
|
||||
pushData.GlobalAmbientIntensity = globalAmbientIntensity;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
pushData.GlobalLightDirection = { 0.0f, -1.0f, 0.0f };
|
||||
pushData.GlobalLightColor = { 0.0f, 0.0f, 0.0f };
|
||||
pushData.GlobalAmbientIntensity = 0.0f;
|
||||
}
|
||||
|
||||
RenderSkybox(pass, cmd, pushData.ViewProjection);
|
||||
RenderMeshes(pass, cmd, pushData);
|
||||
}
|
||||
|
||||
ColorTargetInfo JulietApplication::GetColorTargetInfo(Texture* swapchainTexture)
|
||||
{
|
||||
ColorTargetInfo info = {};
|
||||
|
||||
Reference in New Issue
Block a user