fix: raytracing inclusion mask incorrect bit remove operation
This commit is contained in:
@@ -2567,7 +2567,7 @@ namespace wi::scene
|
||||
}
|
||||
if (!talking_active)
|
||||
{
|
||||
expression_mastering._flags ^= ExpressionComponent::TALKING_ENDED;
|
||||
expression_mastering._flags &= ~ExpressionComponent::TALKING_ENDED;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3965,11 +3965,11 @@ namespace wi::scene
|
||||
}
|
||||
if (!object.IsCastingShadow())
|
||||
{
|
||||
instance.instance_mask ^= wi::renderer::raytracing_inclusion_mask_shadow;
|
||||
instance.instance_mask &= ~wi::renderer::raytracing_inclusion_mask_shadow;
|
||||
}
|
||||
if (object.IsNotVisibleInReflections())
|
||||
{
|
||||
instance.instance_mask ^= wi::renderer::raytracing_inclusion_mask_reflection;
|
||||
instance.instance_mask &= ~wi::renderer::raytracing_inclusion_mask_reflection;
|
||||
}
|
||||
instance.bottom_level = &mesh.BLASes[object.lod];
|
||||
instance.instance_contribution_to_hit_group_index = 0;
|
||||
|
||||
@@ -1101,7 +1101,7 @@ namespace wi::scene
|
||||
float slopeBlendPower = 0;
|
||||
|
||||
// Set decal to only use alpha from base color texture. Useful for blending normalmap-only decals
|
||||
constexpr void SetBaseColorOnlyAlpha(bool value) { if (value) { _flags |= BASECOLOR_ONLY_ALPHA; } else { _flags ^= BASECOLOR_ONLY_ALPHA; } }
|
||||
constexpr void SetBaseColorOnlyAlpha(bool value) { if (value) { _flags |= BASECOLOR_ONLY_ALPHA; } else { _flags &= ~BASECOLOR_ONLY_ALPHA; } }
|
||||
|
||||
constexpr bool IsBaseColorOnlyAlpha() const { return _flags & BASECOLOR_ONLY_ALPHA; }
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace wi::version
|
||||
// minor features, major updates, breaking compatibility changes
|
||||
const int minor = 71;
|
||||
// minor bug fixes, alterations, refactors, updates
|
||||
const int revision = 340;
|
||||
const int revision = 341;
|
||||
|
||||
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user