diff options
author | Juan Linietsky <reduzio@gmail.com> | 2020-08-19 10:38:24 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-09-02 21:37:11 +0200 |
commit | f5f27bacdbd6677c16b82729dd3f4824609cf2ed (patch) | |
tree | 3a04659f841cba0bcbed4b27c4ddd96189c30c3d /scene/resources | |
parent | a3f5dac84f3416cf81dd69d90bf52eeacc63955a (diff) |
Re-Implement GPU particles on master.
-No new features yet
-Unlike godot 3.x, sorting happens using GPU
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/particles_material.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/particles_material.cpp b/scene/resources/particles_material.cpp index fc92a721db..a0095ed952 100644 --- a/scene/resources/particles_material.cpp +++ b/scene/resources/particles_material.cpp @@ -277,7 +277,7 @@ void ParticlesMaterial::_update_shader() { code += "}\n"; code += "\n"; - code += "void vertex() {\n"; + code += "void compute() {\n"; code += " uint base_number = NUMBER / uint(trail_divisor);\n"; code += " uint alt_seed = hash(base_number + uint(1) + RANDOM_SEED);\n"; code += " float angle_rand = rand_from_seed(alt_seed);\n"; |