TextureProperties
This node can be used to set the texture properties for a node with a textureProperties field. A texture with a TextureProperties node will ignore the repeatS and repeatT fields on the texture.
Inheritance
Code
XML encoding
<TextureProperties anisotropicDegree='1.0' borderColor='0 0 0 0' borderWidth='0' boundaryModeS='REPEAT' boundaryModeT='REPEAT' boundaryModeR='REPEAT' magnificationFilter='FASTEST' minificationFilter='FASTEST' textureCompression='FASTEST' texturePriority='0' generateMipMaps='FALSE' internalFormat='auto' logFeature='' />
Classic encoding
TextureProperties { anisotropicDegree 1.0 borderColor 0 0 0 0 borderWidth 0 boundaryModeS "REPEAT" boundaryModeT "REPEAT" boundaryModeR "REPEAT" magnificationFilter "FASTEST" minificationFilter "FASTEST" textureCompression "FASTEST" texturePriority 0 generateMipMaps FALSE internalFormat "auto" logFeature [""] }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
internalFormat | SFString | initializeOnly | auto | [auto, texture_red_type, texture_green_type, texture_blue_type, texture_alpha_type, texture_luminance_type, texture_intensity_type, texture_depth_type, unsigned_normalized, rgba32f, rgb32f, alpha32f, intensity32f, luminance32f, luminance_alpha32f, rgba16f, rgb16f, alpha16f, intensity16f, luminance16f, luminance_alpha16f] | Necessary for floating point textures, or vertex shader texture look-ups with min/magFilter set to nearestXXX. | |
anisotropicDegree | SFFloat | inputOutput | 1.0 | [1, infinity) | The anisotropicDegree field describes the minimum degree of anisotropy to account for in texture filtering. A value of 1 implies no anisotropic filtering. Values above the system's maximum supported value will be clamped to the maximum allowed. Browsers are allowed to use higher values as seemed appropriate. | |
borderColor | SFColorRGBA | inputOutput | 0 0 0 0 | [0, 1] | The borderColor field describes the color to use for border pixels. | |
borderWidth | SFInt32 | inputOutput | 0 | [0, 1] | The borderWidth field describes the number of pixels to use for a texture border. | |
boundaryModeR | SFString | inputOutput | REPEAT | [CLAMP, CLAMP_TO_EDGE, CLAMP_TO_BOUNDARY, MIRRORED_REPEAT, REPEAT] | The boundaryModeS field describes the way R texture coordinate boundaries are handled. | |
boundaryModeS | SFString | inputOutput | REPEAT | [CLAMP, CLAMP_TO_EDGE, CLAMP_TO_BOUNDARY, MIRRORED_REPEAT, REPEAT] | The boundaryModeS field describes the way S texture coordinate boundaries are handled. | |
boundaryModeT | SFString | inputOutput | REPEAT | [CLAMP, CLAMP_TO_EDGE, CLAMP_TO_BOUNDARY, MIRRORED_REPEAT, REPEAT] | The boundaryModeS field describes the way T texture coordinate boundaries are handled. | |
generateMipMaps | SFBool | inputOutput | FALSE | The generateMipMaps field describes whether mipmaps should be generated for the texture. Mipmaps are required for filtering modes with MIPMAP in their value. | ||
logFeature | MFString | inputOutput | state, child, parent, route, eventIn, eventOut | controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything | ||
magnificationFilter | SFString | inputOutput | FASTEST | [AVG_PIXEL, DEFAULT, FASTEST, NEAREST_PIXEL, NICEST, nearest, linear] | The magnificationFilter field describes the way textures are filtered when the image is smaller then the screen space representation. | |
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element | ||
minificationFilter | SFString | inputOutput | FASTEST | [AVG_PIXEL, AVG_PIXEL_AVG_MIPMAP, AVG_PIXEL_NEAREST_MIPMAP, DEFAULT, FASTEST, NEAREST_PIXEL, NEAREST_PIXEL_AVG_MIPMAP, NEAREST_PIXEL_NEAREST_MIPMAP, NICEST, nearest, linear, nearest_mipmap_nearest, nearest_mipmap_linear, linear_mipmap_nearest, linear_mipmap_linear] | The minificationFilter field describes the way textures are filtered when the image is larger then the screen space representation. Modes with MIPMAP in the name require mipmaps. If mipmaps are not provided, the mode shall pick the corresponding non-mipmapped mode (e.g., AVG_PIXEL_NEAREST_MIPMAP becomes AVG_PIXEL). | |
textureCompression | SFString | inputOutput | FASTEST | [DEFAULT, FASTEST, HIGH, LOW, MEDIUM, NICEST] | Defines the texture comporession mode. | |
texturePriority | SFFloat | inputOutput | 0 | [0, 1] | The texturePriority field describes the texture residence priority for allocating texture memory. Zero indicates the lowest priority and 1 indicates the highest priority. |