Saeid Nourian
Saeid Nourian

Reputation: 1778

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

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?

Upvotes: 2

Views: 93

Answers (0)

Related Questions