Texture2Transform


Purpose:

This node is another of the geometry and appearance property Nodes. Texture2Transform sets up a two-dimensional transformation applied to texture coordinates.

Syntax
FILE FORMAT/DEFAULTS
Texture2Transform {
	translation	0 0	# SFVec2f
	rotation	0	# SFFloat
	scaleFactor	1 1	# SFVec2f
	center		0 0	# SFVec2f

}

Explanation

The Texture2Transform node changes the way textures will be applied to the surfaces of shapes that will come later in the scene graph. Possible changes include a non-uniform scale about an arbitrary center point, a rotation about that same point, and a translation. These three possible transformations are listed in the order in which they can occur. This node allows you to change the size and position of the textures on shapes if you wish.

Example Use

The following code fragment is from Allnodes.wrl.

Texture2Transform {
	translation	0 0
	rotation	0
	scaleFactor	1 1
	center		0 0
}
See Also

SFFloat, SFVec2f