File tree 2 files changed +8
-16
lines changed
2 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -377,7 +377,6 @@ namespace spartan
377
377
RHI_Texture* rt_output = GetRenderTarget (Renderer_RenderTarget::frame_output);
378
378
379
379
Pass_VariableRateShading (cmd_list_graphics);
380
- Pass_Skysphere (cmd_list_graphics);
381
380
382
381
// light integration
383
382
{
@@ -401,19 +400,15 @@ namespace spartan
401
400
Pass_Depth_Prepass (cmd_list_graphics);
402
401
Pass_GBuffer (cmd_list_graphics, is_transparent);
403
402
404
- // shadows
403
+ // shadow maps
404
+ Pass_ShadowMaps (cmd_list_graphics, false );
405
+ if (mesh_index_transparent != -1 )
405
406
{
406
- // shadow maps
407
- Pass_ShadowMaps (cmd_list_graphics, false );
408
- if (mesh_index_transparent != -1 )
409
- {
410
- Pass_ShadowMaps (cmd_list_graphics, true );
411
- }
412
-
413
- // screen space
414
- Pass_Sss (cmd_list_graphics);
407
+ Pass_ShadowMaps (cmd_list_graphics, true );
415
408
}
416
409
410
+ Pass_Skysphere (cmd_list_graphics);
411
+ Pass_Sss (cmd_list_graphics);
417
412
Pass_Ssr (cmd_list_graphics);
418
413
Pass_Ssao (cmd_list_graphics);
419
414
Pass_Light (cmd_list_graphics, is_transparent); // compute diffuse and specular buffers
Original file line number Diff line number Diff line change @@ -879,11 +879,8 @@ namespace spartan
879
879
880
880
case PhysicsShape::Mesh:
881
881
{
882
- // get common prerequisites for certain shapes
883
-
884
- shared_ptr<Renderable> renderable = GetEntity ()->GetComponent <Renderable>();
885
-
886
882
// get renderable
883
+ shared_ptr<Renderable> renderable = GetEntity ()->GetComponent <Renderable>();
887
884
if (!renderable)
888
885
{
889
886
SP_LOG_WARNING (" PhysicsShape::Mesh requires a renderable component to be present" );
@@ -931,7 +928,7 @@ namespace spartan
931
928
}
932
929
else
933
930
{
934
- geometry_processing::simplify (m_indices, m_vertices, static_cast <size_t >((m_indices.size () / 3 ) * 0 .2f ));
931
+ geometry_processing::simplify (m_indices, m_vertices, static_cast <size_t >((m_indices.size () / 3 ) * 0 .05f ));
935
932
936
933
// create a btTriangleIndexVertexArray using indices and vertices
937
934
btTriangleIndexVertexArray* index_vertex_array = new btTriangleIndexVertexArray (
You can’t perform that action at this time.
0 commit comments