| 1 |
X3DTextureCoordinateNode : X3DGeometricPropertyNode { |
| 2 |
# X3D XML spec doesn't specify containerField for abstract X3D classes. |
| 3 |
# But texCoord seems most sensible for this. |
| 4 |
default-container-field: texCoord |
| 5 |
} |
| 6 |
|
| 7 |
X3DTextureNode : X3DAppearanceChildNode { |
| 8 |
default-container-field: texture |
| 9 |
} |
| 10 |
|
| 11 |
X3DSingleTextureCoordinateNode : X3DTextureCoordinateNode { |
| 12 |
SFString [in,out] mapping "" |
| 13 |
change: chTextureCoordinate |
| 14 |
} |
| 15 |
|
| 16 |
X3DSingleTextureNode : X3DTextureNode { |
| 17 |
SFString [in,out] description "" |
| 18 |
change: chNone |
| 19 |
|
| 20 |
# CASTLE GAME ENGINE EXTENSIONS: |
| 21 |
MFNode [] effects [] |
| 22 |
range: Effect |
| 23 |
change: chEverything |
| 24 |
|
| 25 |
# X3DOM EXTENSIONS (https://doc.x3dom.org/author/Texturing/X3DTextureNode.html): |
| 26 |
# (note: X3DOM spec doesn't say if it's inputOutput or initializeOnly, below is just a guess) |
| 27 |
SFString [] crossOrigin "" |
| 28 |
not-slim |
| 29 |
change: chNone |
| 30 |
doc: X3DOM extension, not implemented in CGE. |
| 31 |
|
| 32 |
SFString [] alphaChannel "AUTO" |
| 33 |
range: ["AUTO"|"NONE"|"TEST"|"BLENDING"] |
| 34 |
enumerated-type: TAutoAlphaChannel AlphaToString acAuto |
| 35 |
change: chVisibleVRML1State |
| 36 |
} |
| 37 |
|
| 38 |
X3DSingleTextureTransformNode : X3DTextureTransformNode { |
| 39 |
SFString [in,out] mapping "" |
| 40 |
# TODO is chTextureTransform enough? chTextureTransform will not free proxy? |
| 41 |
change: chTextureTransform |
| 42 |
} |
| 43 |
|
| 44 |
X3DTexture2DNode : X3DSingleTextureNode { |
| 45 |
SFBool [] repeatS TRUE |
| 46 |
change: chTextureRendererProperties |
| 47 |
SFBool [] repeatT TRUE |
| 48 |
change: chTextureRendererProperties |
| 49 |
SFNode [] textureProperties NULL |
| 50 |
range: TextureProperties |
| 51 |
change: chTextureRendererProperties |
| 52 |
} |
| 53 |
|
| 54 |
X3DTextureTransformNode : X3DAppearanceChildNode { |
| 55 |
default-container-field: textureTransform |
| 56 |
} |
| 57 |
|
| 58 |
ImageTexture : X3DTexture2DNode, X3DUrlObject { |
| 59 |
MFString [in,out] url [] |
| 60 |
range: [URI] |
| 61 |
change: chTextureImage |
| 62 |
SFBool [] flipVertically FALSE |
| 63 |
change: chTextureImage |
| 64 |
} |
| 65 |
|
| 66 |
MovieTexture : X3DTexture2DNode, X3DSoundSourceNode, X3DUrlObject { |
| 67 |
SFBool [in,out] loop FALSE |
| 68 |
SFTime [in,out] pauseTime 0 |
| 69 |
range: (-Inf,Inf) |
| 70 |
change: chTimeStopStart |
| 71 |
SFTime [in,out] resumeTime 0 |
| 72 |
range: (-Inf,Inf) |
| 73 |
change: chTimeStopStart |
| 74 |
SFFloat [in,out] speed 1.0 |
| 75 |
range: (-Inf,Inf) |
| 76 |
SFTime [in,out] startTime 0 |
| 77 |
range: (-Inf,Inf) |
| 78 |
change: chTimeStopStart |
| 79 |
SFTime [in,out] stopTime 0 |
| 80 |
range: (-Inf,Inf) |
| 81 |
change: chTimeStopStart |
| 82 |
MFString [in,out] url [] |
| 83 |
range: [URI] |
| 84 |
change: chTextureImage |
| 85 |
SFBool [] flipVertically FALSE |
| 86 |
change: chTextureImage |
| 87 |
SFTime [out] duration_changed |
| 88 |
SFTime [out] elapsedTime |
| 89 |
SFBool [out] isActive |
| 90 |
SFBool [out] isPaused |
| 91 |
} |
| 92 |
|
| 93 |
MultiTexture : X3DTextureNode { |
| 94 |
SFFloat [in,out] alpha 1 |
| 95 |
range: [0,1] |
| 96 |
change: chTextureRendererProperties |
| 97 |
SFColor [in,out] color 1 1 1 |
| 98 |
range: [0,1] |
| 99 |
change: chTextureRendererProperties |
| 100 |
MFString [in,out] function [] |
| 101 |
change: chTextureRendererProperties |
| 102 |
MFString [in,out] mode [] |
| 103 |
change: chTextureRendererProperties |
| 104 |
MFString [in,out] source [] |
| 105 |
change: chTextureRendererProperties |
| 106 |
MFNode [in,out] texture [] |
| 107 |
range: X3DSingleTextureNode |
| 108 |
change: chTextureRendererProperties |
| 109 |
} |
| 110 |
|
| 111 |
MultiTextureCoordinate : X3DTextureCoordinateNode { |
| 112 |
MFNode [in,out] texCoord NULL |
| 113 |
range: X3DSingleTextureCoordinateNode |
| 114 |
change: chTextureCoordinate |
| 115 |
} |
| 116 |
|
| 117 |
MultiTextureTransform : X3DTextureTransformNode { |
| 118 |
MFNode [in,out] textureTransform NULL |
| 119 |
range: X3DSingleTextureTransformNode |
| 120 |
change: chEverything |
| 121 |
} |
| 122 |
|
| 123 |
PixelTexture : X3DTexture2DNode { |
| 124 |
SFImage [in,out] image nil |
| 125 |
change: chTextureImage |
| 126 |
} |
| 127 |
|
| 128 |
TextureCoordinate : X3DSingleTextureCoordinateNode { |
| 129 |
MFVec2f [in,out] point [] |
| 130 |
range: (-Inf,Inf) |
| 131 |
change: chTextureCoordinate |
| 132 |
} |
| 133 |
|
| 134 |
TextureCoordinateGenerator : X3DSingleTextureCoordinateNode { |
| 135 |
SFString [in,out] mode "SPHERE" |
| 136 |
change: chTextureCoordinate |
| 137 |
# TODO: should be defined as enum |
| 138 |
|
| 139 |
MFFloat [in,out] parameter [] |
| 140 |
change: chTextureCoordinate |
| 141 |
|
| 142 |
# Implementation note: |
| 143 |
# Note that projectedLight node is not enumerated as an active node |
| 144 |
# for traversing (in TTextureCoordinateGeneratorNode.DirectEnumerateActive), |
| 145 |
# because the light doesn't shine here. We don't want |
| 146 |
# to override it's transform with transformation of this |
| 147 |
# TextureCoordinateGenerator. |
| 148 |
SFNode [in,out] projectedLight NULL |
| 149 |
range: SpotLight, DirectionalLight, TSpotLightNode_1, TDirectionalLightNode_1 |
| 150 |
change: chTextureCoordinate |
| 151 |
} |
| 152 |
|
| 153 |
TextureProperties : X3DNode { |
| 154 |
default-container-field: textureProperties |
| 155 |
SFFloat [in,out] anisotropicDegree 1.0 |
| 156 |
range: [1,Inf) |
| 157 |
change: chTexturePropertiesNode |
| 158 |
SFColorRGBA [in,out] borderColor 0 0 0 0 |
| 159 |
range: [0,1] |
| 160 |
change: chTexturePropertiesNode |
| 161 |
SFInt32 [in,out] borderWidth 0 |
| 162 |
range: [0,1] |
| 163 |
change: chTexturePropertiesNode |
| 164 |
SFString [in,out] boundaryModeS "REPEAT" |
| 165 |
range: ["CLAMP", "CLAMP_TO_EDGE", "CLAMP_TO_BOUNDARY", "MIRRORED_REPEAT", "REPEAT"] |
| 166 |
enumerated-type: TBoundaryMode BoundaryModeNames bmRepeat |
| 167 |
change: chTexturePropertiesNode |
| 168 |
SFString [in,out] boundaryModeT "REPEAT" |
| 169 |
range: ["CLAMP", "CLAMP_TO_EDGE", "CLAMP_TO_BOUNDARY", "MIRRORED_REPEAT", "REPEAT"] |
| 170 |
enumerated-type: TBoundaryMode BoundaryModeNames bmRepeat |
| 171 |
change: chTexturePropertiesNode |
| 172 |
SFString [in,out] boundaryModeR "REPEAT" |
| 173 |
range: ["CLAMP", "CLAMP_TO_EDGE", "CLAMP_TO_BOUNDARY", "MIRRORED_REPEAT", "REPEAT"] |
| 174 |
enumerated-type: TBoundaryMode BoundaryModeNames bmRepeat |
| 175 |
change: chTexturePropertiesNode |
| 176 |
SFString [in,out] magnificationFilter "DEFAULT" |
| 177 |
range: [see Table 18.8] |
| 178 |
change: chTexturePropertiesNode |
| 179 |
SFString [in,out] minificationFilter "DEFAULT" |
| 180 |
range: [see Table 18.9] |
| 181 |
change: chTexturePropertiesNode |
| 182 |
SFString [in,out] textureCompression "FASTEST" |
| 183 |
range: [see Table 18.10] |
| 184 |
change: chTexturePropertiesNode |
| 185 |
SFFloat [in,out] texturePriority 0 |
| 186 |
range: [0,1] |
| 187 |
change: chTexturePropertiesNode |
| 188 |
SFBool [] generateMipMaps FALSE |
| 189 |
change: chTexturePropertiesNode |
| 190 |
|
| 191 |
# CASTLE GAME ENGINE EXTENSIONS: |
| 192 |
SFBool [] guiTexture FALSE |
| 193 |
change: chTexturePropertiesNode |
| 194 |
} |
| 195 |
|
| 196 |
TextureTransform : X3DSingleTextureTransformNode { |
| 197 |
SFVec2f [in,out] center 0 0 |
| 198 |
change: chTextureTransform |
| 199 |
SFFloat [in,out] rotation 0 |
| 200 |
change: chTextureTransform |
| 201 |
angle |
| 202 |
SFVec2f [in,out] scale 1 1 |
| 203 |
change: chTextureTransform |
| 204 |
SFVec2f [in,out] translation 0 0 |
| 205 |
change: chTextureTransform |
| 206 |
} |