| 1 |
#X3D V3.2 utf8 |
| 2 |
PROFILE Interchange |
| 3 |
|
| 4 |
KambiInline { |
| 5 |
url "bridge.x3d" |
| 6 |
|
| 7 |
# This texture is often visible at steep angles, anisotropic filtering helps |
| 8 |
replaceNames "_023bois_jpg" |
| 9 |
replaceNodes ImageTexture { |
| 10 |
url "textures/023bois.jpg" |
| 11 |
textureProperties TextureProperties { |
| 12 |
anisotropicDegree 16 |
| 13 |
minificationFilter "NICEST" |
| 14 |
magnificationFilter "NICEST" |
| 15 |
} |
| 16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
|
| 20 |
# Add a teapot, with cubemap mirror. |
| 21 |
# This shows that generated cubemap textures work from transform_scenes_demos |
| 22 |
# as well, and mirror shows all world obects (all in TCastleViewport, |
| 23 |
# not only in one TCastleScene). |
| 24 |
Transform { |
| 25 |
translation -10 -4 4 |
| 26 |
children Shape { |
| 27 |
appearance Appearance { |
| 28 |
material Material { |
| 29 |
diffuseColor 0.5 1 0.5 |
| 30 |
specularColor 1 1 1 shininess 1 } |
| 31 |
texture MultiTexture { |
| 32 |
texture [ |
| 33 |
ImageTexture { url "textures/059_plombieresgbr.jpg" } |
| 34 |
GeneratedCubeMapTexture { |
| 35 |
update "ALWAYS" # change to "NEXT_FRAME_ONLY" for speed |
| 36 |
size 256 |
| 37 |
} |
| 38 |
] |
| 39 |
mode [ "MODULATE" "ADD" ] |
| 40 |
} |
| 41 |
} |
| 42 |
geometry Teapot { |
| 43 |
texCoord MultiGeneratedTextureCoordinate { |
| 44 |
texCoord [ |
| 45 |
TextureCoordinateGenerator { mode "COORD" } |
| 46 |
TextureCoordinateGenerator { mode "WORLDSPACEREFLECTIONVECTOR" } |
| 47 |
] |
| 48 |
} |
| 49 |
} |
| 50 |
} |
| 51 |
} |