This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

How do you apply the displacement image on cc0textures to the depth attribute?

I tried NORMAL_DEPTH = texture(..

but it doesn't seem to do anything. The docs seem to suggest this.

Also any ideas how to do this for the vertex shader to do real displacement?!

in Engine by (12 points)

1 Answer

0 votes


I don't know any builtin equivalent in shader code to the depth feature of the SpatialMaterial. You can however inspect how it is done and reuse it by creating a material in a resource slot, setup its depth feature and converting it to a shader material (RMB > convert to shader material).

As for actually applying a geometry displacement, see this video.

by (736 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.