From ddf82697d7e47a3a8b950731e02b5d05278a140c Mon Sep 17 00:00:00 2001 From: Raffaele Picca Date: Tue, 23 Nov 2021 13:50:35 +0100 Subject: Random initial color parameter for ParticleMaterial Works with 2D and 3D GPU Particles --- doc/classes/CPUParticles2D.xml | 3 +++ doc/classes/CPUParticles3D.xml | 3 +++ doc/classes/ParticlesMaterial.xml | 3 +++ 3 files changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/classes/CPUParticles2D.xml b/doc/classes/CPUParticles2D.xml index 0505d8ad36..a4415e89db 100644 --- a/doc/classes/CPUParticles2D.xml +++ b/doc/classes/CPUParticles2D.xml @@ -116,6 +116,9 @@ Each particle's initial color. If [member texture] is defined, it will be multiplied by this color. + + Each particle's initial color will vary along this [GradientTexture1D] (multiplied with [member color]). + Each particle's color will vary along this [Gradient] (multiplied with [member color]). diff --git a/doc/classes/CPUParticles3D.xml b/doc/classes/CPUParticles3D.xml index ad491465f2..83728a807b 100644 --- a/doc/classes/CPUParticles3D.xml +++ b/doc/classes/CPUParticles3D.xml @@ -125,6 +125,9 @@ Each particle's initial color. To have particle display color in a [BaseMaterial3D] make sure to set [member BaseMaterial3D.vertex_color_use_as_albedo] to [code]true[/code]. + + Each particle's initial color will vary along this [GradientTexture1D] (multiplied with [member color]). + Each particle's color will vary along this [GradientTexture1D] over its lifetime (multiplied with [member color]). diff --git a/doc/classes/ParticlesMaterial.xml b/doc/classes/ParticlesMaterial.xml index 2cc0d8f2b0..6ff57bd58a 100644 --- a/doc/classes/ParticlesMaterial.xml +++ b/doc/classes/ParticlesMaterial.xml @@ -127,6 +127,9 @@ Each particle's initial color. If the [GPUParticles2D]'s [code]texture[/code] is defined, it will be multiplied by this color. To have particle display color in a [BaseMaterial3D] make sure to set [member BaseMaterial3D.vertex_color_use_as_albedo] to [code]true[/code]. + + Each particle's initial color will vary along this [GradientTexture1D] (multiplied with [member color]). + Each particle's color will vary along this [GradientTexture1D] over its lifetime (multiplied with [member color]). -- cgit v1.2.3