Skip to content

Commit 7e1ef4c

Browse files
committed
Merge pull request #113268 from nathanjf/particle-process-material
Docs: Fix ParticleProcessMaterial code snippet in `alpha_curve` description
2 parents 0156b2b + a6f81f0 commit 7e1ef4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/classes/ParticleProcessMaterial.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<members>
9191
<member name="alpha_curve" type="Texture2D" setter="set_alpha_curve" getter="get_alpha_curve">
9292
The alpha value of each particle's color will be multiplied by this [CurveTexture] over its lifetime.
93-
[b]Note:[/b] [member alpha_curve] multiplies the particle mesh's vertex colors. To have a visible effect on a [BaseMaterial3D], [member BaseMaterial3D.vertex_color_use_as_albedo] [i]must[/i] be [code]true[/code]. For a [ShaderMaterial], [code]ALBEDO *= COLOR.rgb;[/code] must be inserted in the shader's [code]fragment()[/code] function. Otherwise, [member alpha_curve] will have no visible effect.
93+
[b]Note:[/b] [member alpha_curve] multiplies the particle mesh's vertex colors. To have a visible effect on a [BaseMaterial3D], [member BaseMaterial3D.vertex_color_use_as_albedo] [i]must[/i] be [code]true[/code]. For a [ShaderMaterial], [code]ALPHA *= COLOR.a;[/code] must be inserted in the shader's [code]fragment()[/code] function. Otherwise, [member alpha_curve] will have no visible effect.
9494
</member>
9595
<member name="angle_curve" type="Texture2D" setter="set_param_texture" getter="get_param_texture">
9696
Each particle's rotation will be animated along this [CurveTexture].

0 commit comments

Comments
 (0)