0 votes

Simple question, how to change the opacity of a material?

in Engine by (60 points)

1 Answer

0 votes
Best answer

Material override -> fixed material -> use alpha

Material override -> fixed material -> diffuse -> alpha channel(A)

or

Material override -> shader material -> new MaterialShader

color col = color(1.0, 1.0, 1.0, 0.5);
DIFFUSE_ALPHA = col;

or

Material override -> shader material -> new MaterialShaderGraph. Create ColorUniform and connect RGB with Diffuse and Alpha connect with DiffuseAlpha.

by (85 points)
selected by

Thanks, but when enabling the alpha, it seems to turn off the glow, is this normal?

I have just tested. Everything works. I can load my example if you want.

If you wouldn't mind.

I'm talking about a material glowing individually, not the entire environment.

i'm sorry! I see this problem. Glow works with pre-pass alpha, but only with 1.0(255) alpha-channel. Probably it's a bug.

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 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 webmaster@godotengine.org with your username.