WIP Make shadows visible for Storm delegate #80

Closed
Vasyl Pidhirskyi wants to merge 16 commits from Vasyl-Pidhirskyi/blender_bn:BLEN-469 into hydra-render

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
4 changed files with 5 additions and 6 deletions
Showing only changes of commit ddef9b9897 - Show all commits

View File

@ -145,7 +145,9 @@ void LightData::update()
Object *object = (Object *)id;
Light *light = (Light *)object->data;
pxr::HdDirtyBits bits = pxr::HdLight::Clean;
if (id->recalc & ID_RECALC_GEOMETRY || light->id.recalc & ID_RECALC_GEOMETRY || scene_delegate_->shading_settings.use_storm_shadows) {
if (id->recalc & ID_RECALC_GEOMETRY || light->id.recalc & ID_RECALC_GEOMETRY ||
scene_delegate_->shading_settings.use_storm_shadows)
{
if (prim_type(light) != prim_type_) {
remove();
init();

View File

@ -3,7 +3,6 @@
#include <pxr/base/gf/frustum.h>
#include <pxr/imaging/hdx/shadowMatrixComputation.h>
namespace blender::io::hydra {
class ShadowMatrix : public pxr::HdxShadowMatrixComputation {
Vasyl-Pidhirskyi marked this conversation as resolved Outdated

Move whole class to light.cc

Move whole class to light.cc

View File

@ -64,8 +64,7 @@ void FinalEngine::render(Depsgraph *depsgraph)
tasks.push_back(light_tasks_delegate_->skydome_task());
}
tasks.push_back(light_tasks_delegate_->simple_task());
if (hydra_scene_delegate_->shading_settings.use_storm_shadows)
{
if (hydra_scene_delegate_->shading_settings.use_storm_shadows) {
tasks.push_back(light_tasks_delegate_->shadow_task());
}
}

View File

@ -247,8 +247,7 @@ void ViewportEngine::render(Depsgraph *depsgraph, bContext *context)
tasks.push_back(light_tasks_delegate_->skydome_task());
}
tasks.push_back(light_tasks_delegate_->simple_task());
if (hydra_scene_delegate_->shading_settings.use_storm_shadows)
{
if (hydra_scene_delegate_->shading_settings.use_storm_shadows) {
tasks.push_back(light_tasks_delegate_->shadow_task());
}
}