How to set texture from REPEAT to CLAMP in Javafx 3D

79 Views Asked by At

I used DiffusedMap in PhongMaterial to add texture to my mesh but I noticed that at texture coordinate (0,0) it blends the texture color with (1,0). This is expected if Javafx defaults to REPEAT, so I tried to set it to CLAMP but couldn't find any method in PhongMaterial to do that.

Is there a way to set texture wrap to CLAMP? Or are we always stuck with REPEAT textures in Javafx?

0

There are 0 best solutions below