Fix sampling particle position/velocity in material for emitters simulated in Local space
This commit is contained in:
@@ -196,8 +196,14 @@ private:
|
||||
Int,
|
||||
Uint,
|
||||
};
|
||||
enum class ParticleAttributeSpace
|
||||
{
|
||||
AsIs,
|
||||
LocalPosition,
|
||||
LocalDirection,
|
||||
};
|
||||
|
||||
MaterialValue AccessParticleAttribute(Node* caller, const StringView& name, ParticleAttributeValueTypes valueType, const Char* index = nullptr);
|
||||
MaterialValue AccessParticleAttribute(Node* caller, const StringView& name, ParticleAttributeValueTypes valueType, const Char* index = nullptr, ParticleAttributeSpace space = ParticleAttributeSpace::AsIs);
|
||||
void prepareLayer(MaterialLayer* layer, bool allowVisibleParams);
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user