Add WorldPosition to postfx material scene textures for world-space position sampling at uv

This commit is contained in:
Wojtek Figat
2022-11-21 23:45:13 +01:00
parent 99c296ff3a
commit c55d38534d
7 changed files with 38 additions and 1 deletions

View File

@@ -245,6 +245,9 @@ void ParticleEmitterGPUGenerator::ProcessGroupTextures(Box* box, Node* node, Val
value = writeLocal(VariantType::Int, String::Format(TEXT("(int)({0}.a * 3.999)"), gBuffer1Sample.Value), node);
break;
}
case MaterialSceneTextures::WorldPosition:
value = Value::Zero; // Not implemented
break;
default:
{
// Sample single texture