Controlling how textures are mapped
brickb.wrl
#VRML V2.0 utf8
# Texture without textureTransform
Transform {
translation -1.5 0 0
children [
Shape {
appearance Appearance {
material Material { }
texture DEF BrickTexture ImageTexture {
url "brick.jpg"
}
}
geometry Box { }
}
]
}
# Texture scaled with textureTransform
Transform {
translation 1.5 0 0
children [
Shape {
appearance Appearance {
material Material { }
texture USE BrickTexture
textureTransform TextureTransform {
scale 3.0 3.0
}
}
geometry Box { }
}
]
}