How do you add a texture to a shader? (SOLVED)

How do you add a texture to a shader in defold editor 2? In the manuals (Shader programs in Defold) you can add a texture, but I can’t find it here. Did I miss something important?

I believe you have to add a sampler to your material, then you can tie a texture to the sampler in the editor. The manual needs to be updated to reflect this.

4 Likes

Works, thanks!

2 Likes