<?xml version="1.0" encoding="ISO-8859-1"?>

<ze_graph>
    <ze_render>
        <ze_scene>
            <ze_node>
                
                <!-- light is usually necessary for a 3D surface shape -->
                <ze_light></ze_light> 

                <!-- this node will be used for animation -->
                <ze_node name="node">
                
                    <!-- coastlines -->
                    <ze_line>
                    
                        <type>lines</type>
                        <color>1, 1, 1, 1</color>
                        <ze_vertex>
                            
                            <!-- read GSHHS coastline data -->        
                            <dll params=".\data\gshhs_c.b">zs.dll, read_gshhs</dll>
                            
                            <!-- project lon and lat to x, y and z -->
                            <dll append="false">zs.dll, sphere_projection</dll>

                            <!-- scale the radius from 1 to 100.5 -->
                            <mul>100.5, 100.5, 100.5</mul>
                            
                        </ze_vertex>
                    </ze_line>
                    
                    <!-- grids -->
                    <ze_line>
                        <type>lines</type>
                        <color>.5, .5, .5, 1</color>
                        <ze_vertex>
                            <dll params="8">zs.dll, make_sphere_grid</dll>
                            <mul>100.5, 100.5, 100.5</mul>
                        </ze_vertex>
                    </ze_line>
                    
                    <!-- sphere surface -->
                    <ze_polygon>
                        <type>quads</type>
                        <color>0, 0, 1, 1</color>
                        <ze_vertex>
                            <dll params="32">zs.dll, make_sphere_vertex</dll>

                            <!-- scale the radius from 1 to 100.5 -->
                            <mul>100, 100, 100</mul>
                        </ze_vertex>
                        
                        <ze_normal>
                            <!-- but you should not scale vertex normal -->
                            <dll params="32">zs.dll, make_sphere_vertex</dll>
                        </ze_normal>
                    </ze_polygon>
                </ze_node>
            </ze_node>
        </ze_scene>
        
        <show>node</show>
    </ze_render>
</ze_graph>