instantreality 1.0

Component:
Texturing
Status:
fully implemented
Structure type:
concrete
Standard:
X3D3.0

MultiTexture

MultiTexture applies several individual textures to a 3D object to achieve a more complex visual effect. Texture maps have a 2D coordinate system (s, t) horizontal and vertical, with (s, t) values in range [0.0, 1.0] for opposite corners of the image. Hint: insert Shape and Appearance nodes before adding texture.

Inheritance

Code

XML encoding
<MultiTexture source=''
logFeature=''
unit=''
mode=''
function=''
color='1 1 1'
alpha='1.0'
 />
Classic encoding
MultiTexture {
	source [""]
	logFeature [""]
	unit []
	mode [""]
	function [""]
	color 1 1 1
	alpha 1.0
}

Interface

Filter: X3D only | Avalon only | All
id Name DataType PartType Default ValueType Description
SFFloat alpha SFFloat inputOutput 1.0 [0; 1] The alpha field define alpha values for SELECT mode operations.alpha value of the color
SFColor color SFColor inputOutput 1 1 1 The color field define base RGB values for SELECT mode operations.
MFString function MFString inputOutput auto NONE COMPLEMENT ALPHAREPLICATE The function field defines an optional function to be applied to the argument after the mode has been evaluated
MFString mode MFString inputOutput auto MODULATE REPLACE MODULATE2X MODULATE4X ADD ADDSIGNED ADDSIGNED2X SUBTRACT ADDSMOOTH BLENDDIFFUSEALPHA BLENDTEXTUREALPHA BLENDFACTORALPHA BLENDCURRENTALPHA MODULATEALPHA_ADDCOLOR MODULATEINVALPHA_ADDCOLOR MODULATEINVCOLOR_ADDALPHA OFF SELECTARG1 SELECTARG2 DOTPRODUCT3 The mode field controls the type of blending operation. The available modes include MODULATE for a lit Appearance, REPLACE for an unlit Appearance, and several variations of the two. The mode field may contain an additional Blending mode for the alpha channel
MFString source MFString inputOutput auto PREVIOUS DIFFUSE SPECULAR FACTOR The source field determines the colour source for the second argument.
MFNode texture MFNode inputOutput SingleTexture The texture field contains a list of texture nodes (e.g., ImageTexture, PixelTexture, and MovieTexture). The texture field may not contain another MultiTexture node
SFNode metadata SFNode inputOutput MetadataObject container for payload metadata inside MetadataSet element