* Fixed bug with OgreXML loader not actually supporting 2nd UV channel
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7132 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
4d67ee0c3b
commit
8adc704bcc
@ -443,9 +443,11 @@ public class MeshLoader extends DefaultHandler implements AssetLoader {
|
|||||||
|
|
||||||
private void pushTexCoord(Attributes attribs) throws SAXException{
|
private void pushTexCoord(Attributes attribs) throws SAXException{
|
||||||
if (texCoordIdx >= 1)
|
if (texCoordIdx >= 1)
|
||||||
return; // TODO: Support multi-texcoords
|
return; // TODO: More than 2 texcoords
|
||||||
|
|
||||||
VertexBuffer tcvb = mesh.getBuffer(Type.TexCoord);
|
Type type = texCoordIdx == 0 ? Type.TexCoord : Type.TexCoord2;
|
||||||
|
|
||||||
|
VertexBuffer tcvb = mesh.getBuffer(type);
|
||||||
FloatBuffer buf = (FloatBuffer) tcvb.getData();
|
FloatBuffer buf = (FloatBuffer) tcvb.getData();
|
||||||
|
|
||||||
buf.put(parseFloat(attribs.getValue("u")));
|
buf.put(parseFloat(attribs.getValue("u")));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user