forked from LeenkxTeam/LNXSDK
t3du - Particle info random
This commit is contained in:
@ -254,9 +254,10 @@ def parse_particleinfo(node: bpy.types.ShaderNodeParticleInfo, out_socket: bpy.t
|
|||||||
c.particle_info['index'] = True
|
c.particle_info['index'] = True
|
||||||
return 'p_index' if particles_on else '0.0'
|
return 'p_index' if particles_on else '0.0'
|
||||||
|
|
||||||
# TODO: Random
|
# Random
|
||||||
if out_socket == node.outputs[1]:
|
if out_socket == node.outputs[1]:
|
||||||
return '0.0'
|
c.particle_info['random'] = True
|
||||||
|
return 'p_random' if particles_on else '0.0'
|
||||||
|
|
||||||
# Age
|
# Age
|
||||||
elif out_socket == node.outputs[2]:
|
elif out_socket == node.outputs[2]:
|
||||||
@ -276,7 +277,7 @@ def parse_particleinfo(node: bpy.types.ShaderNodeParticleInfo, out_socket: bpy.t
|
|||||||
# Size
|
# Size
|
||||||
elif out_socket == node.outputs[5]:
|
elif out_socket == node.outputs[5]:
|
||||||
c.particle_info['size'] = True
|
c.particle_info['size'] = True
|
||||||
return '1.0'
|
return 'p_size' if particles_on else '1.0'
|
||||||
|
|
||||||
# Velocity
|
# Velocity
|
||||||
elif out_socket == node.outputs[6]:
|
elif out_socket == node.outputs[6]:
|
||||||
|
Reference in New Issue
Block a user