TexCoords on multiple MaterialTexture

Found a bug? Post information about it here so we can fix it!

Moderator: Moderators

Post Reply
User avatar
diki
Posts: 140
Joined: Thu Sep 11, 2008 7:53 pm
Location: GMT+1
Contact:

TexCoords on multiple MaterialTexture

Post 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).
Attachments
mask v02.zgeproj
change 'App>Content>stencilmaterial>MaterialTexture cells>TexCoords'
(1.29 KiB) Downloaded 521 times
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post 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!
Post Reply