From 4aab9cbdfcc735647af5caec56c8fc738c1de693 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Tue, 8 Nov 2022 13:48:43 -0800 Subject: Fix GPUParticles not rendering in doubles build of the engine. real_t was mistakenly used in uniform structs causing a mismatch between the GPU uniform and the CPU uniform --- servers/rendering/renderer_rd/storage_rd/particles_storage.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'servers') diff --git a/servers/rendering/renderer_rd/storage_rd/particles_storage.h b/servers/rendering/renderer_rd/storage_rd/particles_storage.h index 6478e2b5dc..a9cc98abb9 100644 --- a/servers/rendering/renderer_rd/storage_rd/particles_storage.h +++ b/servers/rendering/renderer_rd/storage_rd/particles_storage.h @@ -97,7 +97,7 @@ private: uint32_t type; uint32_t texture_index; //texture index for vector field - real_t scale; + float scale; uint32_t pad[2]; }; @@ -106,8 +106,8 @@ private: float prev_system_phase; uint32_t cycle; - real_t explosiveness; - real_t randomness; + float explosiveness; + float randomness; float time; float delta; -- cgit v1.2.3