Topic was automatically imported from the old Question2Answer platform.
Asked By
roma
I started making a minecraft-like game and faced a problem: I have textures for different sides of the blocks, but I don’t know how to create a .Materials file from the texture png. Sorry for my bad English
Create a Cube in blender, assign one material to each side of the cube there. Export mesh as .gltf with materials set to “placeholder”.
In Godot You will have a MeshInstance of your cube. You can choose materials property in editor, and You will see 6 surface slots. Create new shader material there, new shader, with this code:
didn’t test it, I hope I didn;t make syntax error
Anyways, now when You choose any of your material, You will see new property imageunder shader parameters. Input your texture there, and it should work.