t.setWrap(Texture.WM_WRAP_S_WRAP_T); float vScale = tc.vScale; float uScale = tc.uScale; if ( uScale == 0 ) { uScale = 1; } if ( vScale == 0 ) { vScale = 1; } t.setScale( new Vector3f( uScale, vScale, 1 ) ); myTexState.setTexture(t, 3); myTexState.setEnabled(true);
try { t.setTextureKey(new TextureKey(new URL("file:/"+tc.texName), Texture.FM_LINEAR, Texture.FM_LINEAR, Texture.MM_LINEAR, true, TextureManager.COMPRESS_BY_DEFAULT ? Image.GUESS_FORMAT : Image.GUESS_FORMAT_NO_S3TC));  t.setWrap(Texture.WM_WRAP_S_WRAP_T); float vScale = tc.vScale; float uScale = tc.uScale; if ( uScale == 0 ) { uScale = 1; } if ( vScale == 0 ) { vScale = 1; } t.setScale( new Vector3f( uScale, vScale, 1 ) ); myTexState.setTexture(t, 3);  myTexState.setEnabled(true); } catch (MalformedURLException ex) { ex.printStackTrace(); }
    private void readTextureBumpMap(ChunkHeader i) throws IOException {        TextureChunk tc=new TextureChunk(myIn,i);        Texture t=new Texture();        t.setImageLocation("file:/"+tc.texName);        t.setWrap(Texture.WM_WRAP_S_WRAP_T);        float vScale = tc.vScale;        float uScale = tc.uScale;        if ( uScale == 0 ) {            uScale = 1;        }        if ( vScale == 0 ) {            vScale = 1;        }        t.setScale( new Vector3f( uScale, vScale, 1 ) );        myTexState.setTexture(t, 3);        myTexState.setEnabled(true);    }