1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

2D GPU Particles working..

This commit is contained in:
Juan Linietsky
2017-06-21 16:25:45 -03:00
parent 3c1fd26bb0
commit 95560e02c5
21 changed files with 1039 additions and 1340 deletions

View File

@@ -2326,6 +2326,9 @@ void RasterizerStorageGLES3::_update_material(Material *material) {
if (E->get().order < 0)
continue; // texture, does not go here
//if (material->shader->mode == VS::SHADER_PARTICLES) {
// print_line("uniform " + String(E->key()) + " order " + itos(E->get().order) + " offset " + itos(material->shader->ubo_offsets[E->get().order]));
//}
//regular uniform
uint8_t *data = &local_ubo[material->shader->ubo_offsets[E->get().order]];