Skip to content

GPUParticles3D parameter local_coords not working with doubles builds of the engine #73383

Closed
@Anders333

Description

@Anders333

Godot version

4.0.dev (double precision) ( f2aae8f [f2aae8f])

System information

Win10, RTX3060, Vulkan

Issue description

If i set local_coords to false, particles still moves with the GPUParticles3D node, but don't rotate. When local_coords is true, particles moves(with a node) and rotates(around himselves, what is wrong compared to RC2) .

Steps to reproduce

Create scene. Add GPUParticles3D node, set local_coords to fale, create particle material with shader code and move node.

shader_type particles;
uniform float rows = 10.;
uniform float spacing = 2.;
void start() {
	vec3 pos = vec3(0.0, 0.0, 0.0);
	pos.z = float(INDEX);
	pos.x = mod(pos.z, rows);
	pos.z = (pos.z - pos.x) / rows;
	TRANSFORM[3][0] = pos.x*spacing;
	TRANSFORM[3][1] = 0.;
	TRANSFORM[3][2] = pos.z*spacing;
}

void process() {
}

Minimal reproduction project

N/A
TestParticles.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions