0 votes

I imported glsl file and it successfully compiled, but how to use it? It looks like it can't be used like a normal shader file

Godot version 4.0
in Engine by (16 points)

1 Answer

+1 vote

In Godot 3.x, you can only use the Godot shader language – you can't import GLSL files directly. This language has GLSL-like syntax, but it is not GLSL.

In Godot 4.0, you can use GLSL files directly, but only for specific advanced uses (it's not intended to be used for material shaders). For most use cases, the Godot shader language is more suited.

by (12,717 points)
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.