| 1 |
X3DEnvironmentTextureNode : X3DSingleTextureNode { |
| 2 |
} |
| 3 |
|
| 4 |
ComposedCubeMapTexture : X3DEnvironmentTextureNode { |
| 5 |
|
| 6 |
# TODO: runtime changes to nodes inside (like ImageTexture.url, for ImageTexture in back/front/etc.) |
| 7 |
# will not be properly applied. |
| 8 |
# They should result in chTextureRendererProperties on us. |
| 9 |
|
| 10 |
SFNode [in,out] back NULL |
| 11 |
range: X3DTexture2DNode |
| 12 |
change: chTextureRendererProperties |
| 13 |
SFNode [in,out] bottom NULL |
| 14 |
range: X3DTexture2DNode |
| 15 |
change: chTextureRendererProperties |
| 16 |
SFNode [in,out] front NULL |
| 17 |
range: X3DTexture2DNode |
| 18 |
change: chTextureRendererProperties |
| 19 |
SFNode [in,out] left NULL |
| 20 |
range: X3DTexture2DNode |
| 21 |
change: chTextureRendererProperties |
| 22 |
SFNode [in,out] right NULL |
| 23 |
range: X3DTexture2DNode |
| 24 |
change: chTextureRendererProperties |
| 25 |
SFNode [in,out] top NULL |
| 26 |
range: X3DTexture2DNode |
| 27 |
change: chTextureRendererProperties |
| 28 |
# X3D spec 3.2 doesn't specify this field, but it's natural, instantreality also uses this. |
| 29 |
SFNode [] textureProperties NULL |
| 30 |
range: TextureProperties |
| 31 |
change: chTextureRendererProperties |
| 32 |
} |
| 33 |
|
| 34 |
GeneratedCubeMapTexture : X3DEnvironmentTextureNode { |
| 35 |
SFString [in,out] update "NONE" |
| 36 |
range: ["NONE"|"NEXT_FRAME_ONLY"|"ALWAYS"] |
| 37 |
enumerated-type: TTextureUpdate TextureUpdateNames upNone |
| 38 |
doc: When to update the texture contents. |
| 39 |
# When changing "update" to NEXT_FRAME_ONLY or ALWAYS, all we need |
| 40 |
# is to do chRedisplay. |
| 41 |
# At next UpdateGeneratedTextures call the texture will be updated. |
| 42 |
# |
| 43 |
# Note: chVisibleGeometry, chVisibleNonGeometry are not necessary, |
| 44 |
# they would actually eliminate a useful optimization: |
| 45 |
# if no visible change was registered since last update |
| 46 |
# of the texture, the texture will not be actually immediately |
| 47 |
# regenerated, even if you set update to NEXT_FRAME_ONLY or ALWAYS --- |
| 48 |
# correct optimization! |
| 49 |
# |
| 50 |
# Note: When changing to upNone, then changes could be chNone. |
| 51 |
# But we ignore this optimization now, redisplaying is not a problem. |
| 52 |
change: chRedisplay |
| 53 |
SFInt32 [] size 128 |
| 54 |
range: (0,Inf) |
| 55 |
change: chTextureRendererProperties |
| 56 |
SFNode [] textureProperties NULL |
| 57 |
range: TextureProperties |
| 58 |
change: chTextureRendererProperties |
| 59 |
SFVec3f [in,out] bias 0 0 0 |
| 60 |
change: chNone # bias is applied at next update |
| 61 |
doc: Bias from shape center to the point from which we generate a cubemap texture. TODO: for now in world space, should be in shape space. |
| 62 |
} |
| 63 |
|
| 64 |
ImageCubeMapTexture : X3DEnvironmentTextureNode, X3DUrlObject { |
| 65 |
MFString [in,out] url [] |
| 66 |
range: [URI] |
| 67 |
# The image loaded by LoadImage method isn't saved at ImageCubeMapTexture. |
| 68 |
# So we don't need chTextureImage in case of change, instead just let renderer load the texture again. |
| 69 |
change: chTextureRendererProperties |
| 70 |
SFNode [] textureProperties NULL |
| 71 |
range: TextureProperties |
| 72 |
change: chTextureRendererProperties |
| 73 |
} |