Topic: Unable to scale Textures
Local snowTex:ITexture = engine.video.GetTexture("tex.png")
ter.terrainMeshSceneNode.setMaterialTexture(0, snowTex)
ter.terrainMeshSceneNode.getMaterial(0).getTextureMatrix(0).setTextureScale(1, 10)
GMan's Mods & Stuff → Bug Reports → Unable to scale Textures
Local snowTex:ITexture = engine.video.GetTexture("tex.png")
ter.terrainMeshSceneNode.setMaterialTexture(0, snowTex)
ter.terrainMeshSceneNode.getMaterial(0).getTextureMatrix(0).setTextureScale(1, 10)
sm.setTextureMatrix(0,sm.getTextureMatrix(0).setTextureScale(4,4));
Thank you for your answer, but also this code seems not to work. The scale factor doesn't affect the Texture in any way...
...
Local mat:Matrix4 = ter.terrainMeshSceneNode.getMaterial(0).getTextureMatrix(0)
mat.setTextureScale(0.1, 10)
ter.terrainMeshSceneNode.getMaterial(0).setTextureMatrix(0, mat)
...
If needed I'll upload you an example code to test it yourself
GMan's Mods & Stuff → Bug Reports → Unable to scale Textures
Powered by PunBB, supported by Informer Technologies, Inc.