We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aad0dd commit 29f46fdCopy full SHA for 29f46fd
pywavefront/visualization.py
@@ -135,8 +135,12 @@ def bind_texture(texture):
135
136
glEnable(texture.image.target)
137
glBindTexture(texture.image.target, texture.image.id)
138
- glTexParameterf(texture.image.target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE)
139
- glTexParameterf(texture.image.target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE)
+ if texture.options.clamp == "on":
+ glTexParameterf(texture.image.target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE)
140
+ glTexParameterf(texture.image.target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE)
141
+ else:
142
+ glTexParameterf(texture.image.target, GL_TEXTURE_WRAP_S, GL_REPEAT)
143
+ glTexParameterf(texture.image.target, GL_TEXTURE_WRAP_T, GL_REPEAT)
144
145
146
def load_image(name):
0 commit comments