gpu actor tracing (NOT WORKING)

This commit is contained in:
Ricardo Luís Vaz Silva 2025-01-18 01:46:02 -03:00 committed by Magnus Norddahl
commit a7b20183f1
22 changed files with 135 additions and 76 deletions

View file

@ -329,6 +329,8 @@ void VkRenderState::ApplyRenderPass(int dt)
pipelineKey.ShaderKey.LightMode = 1; // Software
}
pipelineKey.ShaderKey.ShadeVertex = mShadeVertex;
pipelineKey.ShaderKey.UseShadowmap = gl_light_shadows == 1;
pipelineKey.ShaderKey.UseRaytrace = gl_light_shadows >= 2;
pipelineKey.ShaderKey.UseRaytracePrecise = gl_light_shadows >= 3;
@ -1078,6 +1080,8 @@ void VkRenderState::ApplyLevelMeshPipeline(VulkanCommandBuffer* cmdbuffer, VkPip
pipelineKey.ShaderKey.AlphaTestOnly = true;
}
pipelineKey.ShaderKey.ShadeVertex = mShadeVertex;
// Global state that don't require rebuilding the mesh
pipelineKey.ShaderKey.NoFragmentShader = noFragmentShader;
pipelineKey.ShaderKey.UseShadowmap = gl_light_shadows == 1;