VisualShaderNodeParticleEmit

继承: VisualShaderNode < Resource < RefCounted < Object

A visual shader node that forces to emit a particle from a sub-emitter.

描述

This node internally calls emit_subparticle shader method. It will emit a particle from the configured sub-emitter and also allows to customize how its emitted. Requires a sub-emitter assigned to the particles node with this shader.

属性


枚举

enum EmitFlags:

EmitFlags EMIT_FLAG_POSITION = 1

If enabled, the particle starts with the position defined by this node.

EmitFlags EMIT_FLAG_ROT_SCALE = 2

If enabled, the particle starts with the rotation and scale defined by this node.

EmitFlags EMIT_FLAG_VELOCITY = 4

If enabled,the particle starts with the velocity defined by this node.

EmitFlags EMIT_FLAG_COLOR = 8

If enabled, the particle starts with the color defined by this node.

EmitFlags EMIT_FLAG_CUSTOM = 16

If enabled, the particle starts with the CUSTOM data defined by this node.


属性说明

EmitFlags flags = 31

Flags used to override the properties defined in the sub-emitter's process material.

1

本方法通常需要用户覆盖才能生效。

2

本方法无副作用,不会修改该实例的任何成员变量。

3

本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。

4

本方法用于构造某个类型。

5

调用本方法无需实例,可直接使用类名进行调用。

6

本方法描述的是使用本类型作为左操作数的有效运算符。

7

这个值是由下列位标志构成位掩码的整数。

8

无返回值。