Debian Codegraph @

examples/viewport_and_scenes/projector/data/projective_texturing_simple.x3dv

raw
1 #X3D V3.2 utf8
2 PROFILE Interchange
3
4 Shape {
5 appearance Appearance {
6 texture ImageTexture {
7 url "test_texture.png"
8 textureProperties TextureProperties {
9 boundaryModeS "CLAMP"
10 boundaryModeT "CLAMP"
11 }
12 }
13 }
14 geometry Box {
15 texCoord ProjectedTextureCoordinate {
16 projector DEF MyProjector SpotLight {
17 # Projecting texture direction and location,
18 # relative (local) to the TCastleScene that has loaded this X3D file.
19 direction 1 1 1
20 location 10 10 10
21 # Size of light in radians, determines also cast texture size.
22 cutOffAngle 0.05
23 # We turn the light off, to use it only for projector.
24 on FALSE
25 }
26 }
27 }
28 }