Page 1 of 1

TexCoords on multiple MaterialTexture

Posted: Wed Mar 10, 2010 7:28 pm
by diki
when using a Material with more than one MaterialTexture, it appears that every MaterialTexture except the first is displayed wrong when using 'ModelDefined' instead of 'Generated' TexCoords (it appears as though the texture is stretched very large, e.g. only the top-left-most pixel color is applied).

Posted: Fri Mar 12, 2010 1:50 pm
by VilleK
It turns out you need to send the texture coordinates again for every texture because they cannot share the coordinates of the first texture unit. I'll try to fix this for next release!