Aggiunta di trame (Direct3D 9)

Per aggiungere texture, utilizzare la natura gerarchica del formato di file e aggiungere un oggetto dati TextureFilename agli oggetti dati Material. Gli oggetti del materiale ora sono indicati come segue:

Material RedMaterial {
1.000000;0.000000;0.000000;1.000000;;    // R = 1.0, G = 0.0, B = 0.0
0.000000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;
TextureFilename { "tex1.ppm"; }
}

Material GreenMaterial {
0.000000;1.000000;0.000000;1.000000;;     // R = 0.0, G = 1.0, B = 0.0
0.000000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;
TextureFilename { "win95.ppm"; }
}

X Files (Legacy)