forked from LeenkxTeam/LNXSDK
moisesjpelaez - Physics Improvements
This commit is contained in:
parent
16e019be26
commit
d40d3eb96e
@ -1109,6 +1109,26 @@ class Uniforms {
|
||||
case "_texUnpack": {
|
||||
f = texUnpack != null ? texUnpack : 1.0;
|
||||
}
|
||||
#if lnx_particles
|
||||
case "_particleSizeRandom": {
|
||||
var mo = cast(object, MeshObject);
|
||||
if (mo.particleOwner != null && mo.particleOwner.particleSystems != null) {
|
||||
f = mo.particleOwner.particleSystems[mo.particleIndex].getSizeRandom();
|
||||
}
|
||||
}
|
||||
case "_particleRandom": {
|
||||
var mo = cast(object, MeshObject);
|
||||
if (mo.particleOwner != null && mo.particleOwner.particleSystems != null) {
|
||||
f = mo.particleOwner.particleSystems[mo.particleIndex].getRandom();
|
||||
}
|
||||
}
|
||||
case "_particleSize": {
|
||||
var mo = cast(object, MeshObject);
|
||||
if (mo.particleOwner != null && mo.particleOwner.particleSystems != null) {
|
||||
f = mo.particleOwner.particleSystems[mo.particleIndex].getSize();
|
||||
}
|
||||
}
|
||||
#end
|
||||
}
|
||||
|
||||
if (f == null && externalFloatLinks != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user