Factorized Push Data
This commit is contained in:
@@ -320,6 +320,10 @@ void JulietApplication::OnRender(RenderPass* pass, CommandList* cmd)
|
||||
PushData pushData = {};
|
||||
pushData.ViewProjection = Camera_GetViewProjectionMatrix(GetDebugCamera());
|
||||
|
||||
pushData.LightDirection = Normalize({ 0.5f, -1.0f, -0.5f });
|
||||
pushData.LightColor = { 1.0f, 0.95f, 0.8f };
|
||||
pushData.AmbientIntensity = 0.2f;
|
||||
|
||||
RenderMeshes(pass, cmd, pushData);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user