Fix rendering various visuals on WebGPU

This commit is contained in:
Wojtek Figat
2026-03-02 20:36:33 +01:00
parent b36c757753
commit b191d3918e
36 changed files with 458 additions and 220 deletions

View File

@@ -50,12 +50,7 @@ bool ParticleEmitterGPUGenerator::loadTexture(Node* caller, Box* box, const Seri
bool ParticleEmitterGPUGenerator::sampleSceneTexture(Node* caller, Box* box, const SerializedMaterialParam& texture, Value& result)
{
ASSERT(caller && box && texture.ID.IsValid());
// Cache data
auto parent = box->GetParent<Node>();
const bool isCubemap = texture.Type == MaterialParameterType::CubeTexture;
const bool isVolume = texture.Type == MaterialParameterType::GPUTextureVolume;
const bool isArray = texture.Type == MaterialParameterType::GPUTextureArray;
// Check if has variable assigned and it's a valid type
if (texture.Type != MaterialParameterType::Texture