Refactor rendering frame execution contracts
This commit is contained in:
@@ -22,6 +22,10 @@ const char* BuiltinShadowCasterPass::GetName() const {
|
||||
return "BuiltinShadowCasterPass";
|
||||
}
|
||||
|
||||
RendererListType BuiltinShadowCasterPass::GetRendererListType() const {
|
||||
return RendererListType::ShadowCaster;
|
||||
}
|
||||
|
||||
bool BuiltinShadowCasterPass::ShouldRenderVisibleItem(const VisibleRenderItem& visibleItem) const {
|
||||
return visibleItem.meshRenderer == nullptr || visibleItem.meshRenderer->GetCastShadows();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user