Texture at Coordinates


#1

I have a land (sphere).
I want her to click on it she adds a swirl texture on it.

I already have the point when touching the sphere, but I do not know how to add the material on it.


#2

You would need to write a custom shader for your sphere object if you want to edit the texture dynamically and add effects like a swirl onto the existing texture.

Or if you just want to overlay a new texture at that location, then it sounds like you’d want to use a decal system to project the swirl onto your sphere.


#3

you have an example where you can guide me to write a custom shader?


#4

#5

Thank you


#6

I also found this video series helpful when I was learning the basics of shaders, epsecially since it uses JME