| 1 |
#X3D V4.0 utf8 |
| 2 |
|
| 3 |
PROFILE Interchange |
| 4 |
|
| 5 |
PROTO PaletteModel [ |
| 6 |
initializeOnly SFVec3f translation 0 0 0 |
| 7 |
initializeOnly MFString palette "" |
| 8 |
initializeOnly MFString texture "" |
| 9 |
] { |
| 10 |
Transform { |
| 11 |
translation IS translation |
| 12 |
children Shape { |
| 13 |
appearance Appearance { |
| 14 |
material UnlitMaterial { |
| 15 |
} |
| 16 |
shaders ComposedShader { |
| 17 |
initializeOnly SFNode tex ImageTexture { |
| 18 |
url IS texture |
| 19 |
textureProperties TextureProperties { |
| 20 |
magnificationFilter "NEAREST_PIXEL" |
| 21 |
minificationFilter "NEAREST_PIXEL" |
| 22 |
} |
| 23 |
} |
| 24 |
initializeOnly SFNode palette ImageTexture { |
| 25 |
url IS palette |
| 26 |
textureProperties TextureProperties { |
| 27 |
magnificationFilter "NEAREST_PIXEL" |
| 28 |
minificationFilter "NEAREST_PIXEL" |
| 29 |
} |
| 30 |
} |
| 31 |
language "GLSL" |
| 32 |
parts [ |
| 33 |
ShaderPart { |
| 34 |
type "VERTEX" |
| 35 |
url "shader.vert" |
| 36 |
} |
| 37 |
ShaderPart { |
| 38 |
type "FRAGMENT" |
| 39 |
url "shader.frag" |
| 40 |
} |
| 41 |
] |
| 42 |
} |
| 43 |
} |
| 44 |
geometry IndexedFaceSet { |
| 45 |
solid FALSE |
| 46 |
coord Coordinate { point [ -0.5 -0.5 0, 0.5 -0.5 0, 0.5 0.5 0, -0.5 0.5 0 ] } |
| 47 |
texCoord TextureCoordinate { point [ 0 0, 1 0, 1 1, 0 1 ] } |
| 48 |
coordIndex [ 0 1 2 3 ] |
| 49 |
} |
| 50 |
} |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
PaletteModel { |
| 55 |
translation -1 0 0 |
| 56 |
palette "palette1.png" |
| 57 |
texture "texture.png" |
| 58 |
} |
| 59 |
|
| 60 |
PaletteModel { |
| 61 |
translation 1 0 0 |
| 62 |
palette "palette2.png" |
| 63 |
texture "texture.png" |
| 64 |
} |