0 votes

so I tried to implement a trail for my platformer-character when dashing, but it doesnt work correctly. I was following a guide and used the following for the shader:
shadertype canvasitem;

uniform vec4 baseColor : source_color;

void fragment() {
vec4 texColor = texture(TEXTURE, UV);
COLOR.rgba = vec4(baseColor.r, baseColor.g, baseColor.b, texColor.a);
Note that I am using the Godot4 beta 10 while the guide was still working with godot 3...
Oh and i am applying the shader on a GPUParticles-Node if that is important.
I know this probably wont have to do anything with the shader, but its worth asking.
Thank you for any helpers in advance :)

Godot version Godot-4-beta-10
in Engine by (18 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.