Re: [cgkit-user] Using the object loaders in other code.
Brought to you by:
mbaas
From: Matthias B. <mat...@gm...> - 2008-04-14 19:56:51
|
René Dudfield wrote: > I tried using the texture matrix like you suggested, but that doesn't fix it. You have set the wrap modes to GL_CLAMP, but as we are just negating the texture coordinate we actually end up with coordinates that are "out of range". This doesn't matter as long as we are using GL_REPEAT (which is the default) because in this case the texture image is repeated in texture space. If for some reason you need to use GL_CLAMP you must translate the texture coordinate back into the valid range (0-1). For example: transform = mat4.scaling((1,-1,1)) transform.translate((0,-1,0)) Sorry for the confusion. - Matthias - |