TextureCoordinateGenerator
TextureCoordinateGenerator computes 2D (s,t) texture-coordinate points, used by vertex-based geometry (ElevationGrid, IndexedFaceSet) to map textures to vertices (and patches to polygons). Hint: add Shape and then polgyonal/planar geometry before adding TextureCoordinateGenerator.
Inheritance
Code
XML encoding
<TextureCoordinateGenerator mode='SPHERE' parameter='' logFeature='' />
Classic encoding
TextureCoordinateGenerator { mode "SPHERE" parameter [] logFeature [""] }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
mode | SFString | inputOutput | SPHERE | [SPHERE, CAMERASPACENORMAL, CAMERASPACEPOSITION, CAMERASPACEREFLECTIONVECTOR, SPHERE-LOCAL, COORD, COORD-EYE, NOISE, NOISE-EYE, SPHERE-REFLECT, SPHERE-REFLECT-LOCAL, TANGENT, PLANE] | Texture generation mode, e.g. sphere or tangent. | |
parameter | MFFloat | inputOutput | Optional mode parameters (for e.g. tangent this could be [0,1,2], which means src texCoord (used for calculation) is in slot 0, and calculated tangents and binormals shall be in texCoord slots 1 and 2). | |||
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element |