In case of success, data contains following fields:
data.vertices: array containing the vertices, relative to the shape's reference frame
data.indices: array containing the indices
data.normals: array containing the normals, relative to the shape's reference frame
data.colors: array containing the colors: RGB for ambient-diffuse, specular, and emission.
data.shadingAngle: the gouraud shading angle
data.transparency: 1=transparent, 0= opaque
data.options: bit-coded:
bit0 set (1): backface culling
bit1 set (2): wireframe
Additionally, if the shape element contains a texture, data contains following additional fields:
data.texture.id: a texture id (to identify textures shared among several shapes)
data.texture.resolution: the resolution of the texture
data.texture.coordinates: the texture coordinates
data.texture.applyMode: 0=modulate, 1=decal, 2=add
data.texture.options: bit-coded:
bit0 set (1): repeat U
bit1 set (2): repeat V
bit2 set (4): interpolate colors
|