1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-25 15:37:42 +00:00

Small fixes required to get platformer to work.

Added back CanvasItemMaterial
This commit is contained in:
Juan Linietsky
2017-06-23 14:31:21 -03:00
parent 33c146adbc
commit 8ef1c41a4e
9 changed files with 333 additions and 12 deletions

View File

@@ -571,7 +571,7 @@ void ParticlesMaterial::_update_shader() {
code += "\n";
code += " uint base_number=NUMBER/uint(trail_divisor);\n";
code += " uint alt_seed=hash(base_number+uint(1));\n";
code += " uint alt_seed=hash(base_number+uint(1)+RANDOM_SEED);\n";
code += " float angle_rand=rand_from_seed(alt_seed);\n";
code += " float scale_rand=rand_from_seed(alt_seed);\n";
code += " float hue_rot_rand=rand_from_seed(alt_seed);\n";