summaryrefslogtreecommitdiff
path: root/servers/rendering
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2021-08-17 16:46:45 +0300
committerGitHub <noreply@github.com>2021-08-17 16:46:45 +0300
commit3d673fac50e385e79112ad44ac5887875c5e1459 (patch)
tree21304d0c13da1f7c4cbc3c73c2f0f977ad48fa53 /servers/rendering
parentca6c5cf7e6252558d8791d41b8b757929ac3819c (diff)
parent06add309d7fe04bab459e011cb35ef9bb4e9b50d (diff)
Merge pull request #51790 from Chaosus/fix_particle_uniforms
Fix incorrect double types passing to particles shader pipeline
Diffstat (limited to 'servers/rendering')
-rw-r--r--servers/rendering/renderer_rd/renderer_storage_rd.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/servers/rendering/renderer_rd/renderer_storage_rd.h b/servers/rendering/renderer_rd/renderer_storage_rd.h
index c048be5dc8..b7adef6c60 100644
--- a/servers/rendering/renderer_rd/renderer_storage_rd.h
+++ b/servers/rendering/renderer_rd/renderer_storage_rd.h
@@ -668,14 +668,14 @@ private:
};
uint32_t emitting;
- double system_phase;
- double prev_system_phase;
+ float system_phase;
+ float prev_system_phase;
uint32_t cycle;
real_t explosiveness;
real_t randomness;
- double time;
- double delta;
+ float time;
+ float delta;
uint32_t frame;
uint32_t pad0;
@@ -812,7 +812,7 @@ private:
struct ParticlesShader {
struct PushConstant {
- double lifetime;
+ float lifetime;
uint32_t clear;
uint32_t total_particles;
uint32_t trail_size;