hair particle system fix
This commit is contained in:
@@ -161,7 +161,7 @@ void wiHairParticle::UpdateCPU(const TransformComponent& transform, const MeshCo
|
||||
device->CreateBuffer(&bd, indices.data(), &indexBuffer);
|
||||
}
|
||||
|
||||
if (device->CheckCapability(GRAPHICSDEVICE_CAPABILITY_RAYTRACING))
|
||||
if (device->CheckCapability(GRAPHICSDEVICE_CAPABILITY_RAYTRACING) && primitiveBuffer.IsValid())
|
||||
{
|
||||
RaytracingAccelerationStructureDesc desc;
|
||||
desc.type = RaytracingAccelerationStructureDesc::BOTTOMLEVEL;
|
||||
|
||||
@@ -3602,7 +3602,7 @@ namespace wiScene
|
||||
inst.transformPrev.Create(IDENTITYMATRIX);
|
||||
inst.meshIndex = (uint)meshIndex;
|
||||
|
||||
if (TLAS_instancesMapped != nullptr)
|
||||
if (TLAS_instancesMapped != nullptr && hair.BLAS.IsValid())
|
||||
{
|
||||
// TLAS instance data:
|
||||
RaytracingAccelerationStructureDesc::TopLevel::Instance instance = {};
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace wiVersion
|
||||
// minor features, major updates, breaking compatibility changes
|
||||
const int minor = 57;
|
||||
// minor bug fixes, alterations, refactors, updates
|
||||
const int revision = 34;
|
||||
const int revision = 35;
|
||||
|
||||
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user