Multiple Texture Coordinates in Shader

Hi Everyone,



I’m just rewriting some core code of moebius to optimize it for performance. Now I need to have more than one texture coordinate - I already figured out how to set more than one - but I don’t find any example of how to use them in the shader?

http://code.google.com/p/jmonkeyengine/source/browse/trunk/engine/src/core-data/Common/MatDefs/Misc/Unshaded.vert

http://code.google.com/p/jmonkeyengine/source/browse/trunk/engine/src/core-data/Common/MatDefs/Misc/Unshaded.frag



from:

http://code.google.com/p/jmonkeyengine/source/browse/trunk/engine/src/core-data/Common/MatDefs/Misc/Unshaded.j3md

1 Like

Thanks pspeed! Exactly what I was searching for :slight_smile: I already checked out the whole JME code but didn’t search in the Unshaded source …

@entrusc said:
Thanks pspeed! Exactly what I was searching for :) I already checked out the whole JME code but didn't search in the Unshaded source ...


Glad it helped. I always like it when a well placed link can answer a question. :)