Browse Source

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
clayjohn 2 years ago
parent
commit
4aab9cbdfc
1 changed files with 3 additions and 3 deletions
  1. 3 3
      servers/rendering/renderer_rd/storage_rd/particles_storage.h

+ 3 - 3
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;