renderer: add generic scalar field color path
This commit is contained in:
@@ -1077,10 +1077,17 @@ void RenderRasterParticleLayer::update(gfx::ShaderRegistry& shaders,
|
||||
}
|
||||
return;
|
||||
}
|
||||
// Scalar-only is a valid V3 Core snapshot, but this velocity-only
|
||||
// renderer stays fail-closed until the V3-03 texture contract exists.
|
||||
if (formalSource && (!sourceField->hasVector() || !sourceNextField->hasVector())) {
|
||||
// Particle advection consumes only physical U/V velocity. Scalar-only
|
||||
// fields and direction vectors are unavailable until V3-04 defines their
|
||||
// separate advection contract.
|
||||
if (formalSource && (!sourceField->hasVector() || !sourceNextField->hasVector() ||
|
||||
sourceField->vectorSemantics != particle::VectorSemantics::Velocity ||
|
||||
sourceNextField->vectorSemantics != particle::VectorSemantics::Velocity)) {
|
||||
if (layerGroup) static_cast<LayerGroup&>(*layerGroup).clearDrawables();
|
||||
if (gpuResources) {
|
||||
removeTargets(gpuResources->registeredTargets, changes);
|
||||
gpuResources.reset();
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (!layerGroup || !isLayerRenderable()) return;
|
||||
|
||||
Reference in New Issue
Block a user