Refactoring to reduce parameter count for KRPipeline::bind, passing by RenderInfo
This commit is contained in:
@@ -145,7 +145,7 @@ void KRReverbZone::render(RenderInfo& ri)
|
||||
|
||||
KRPipeline* pShader = getContext().getPipelineManager()->getPipeline(*ri.surface, info);
|
||||
|
||||
pShader->bind(ri.commandBuffer, *ri.camera, *ri.viewport, sphereModelMatrix, &ri.point_lights, &ri.directional_lights, &ri.spot_lights, ri.renderPass);
|
||||
pShader->bind(ri, sphereModelMatrix);
|
||||
|
||||
sphereModel->renderNoMaterials(ri.commandBuffer, ri.renderPass, getName(), "visualize_overlay", 1.0f);
|
||||
} // sphereModel
|
||||
|
||||
Reference in New Issue
Block a user