0 votes

Hi...,

the doc says you can convert material to shader code:
https://docs.godotengine.org/en/stable/tutorials/3d/spatial_material.html

How to get the code?

Thanks

Mike

Godot version 3.4.stable
in Engine by (132 points)

1 Answer

+1 vote
Best answer

In Material properties in editor there is Shader property. For 3D models You can choose there new spatial material or new shader material. Spatial material is built-in shader with code hidden, it is that thing You can choose albedo color, roughness, metallic and many other properties. When You choose to use it and create new spatial material, You can set all its properties as You like, and when You click Shader property again, You will notice a new option there - convert to shader material. This will not change any properties, and You will have access to spatial materials code, all properties will be transormed into its uniforms. The same applies to particles material.

by (5,252 points)
selected by

Hi Inces, that's the solution, I've found it. Thank you very much, Mike

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.