Project

General

Profile

Exemple de scène

Documentation utilisateur
12/21/2010

scene "MyFirstScene" 
{
    ambient_light 1.0 1.0 1.0 1.0

    scene_node "Light_Node" 
    {
        position 1.0 1.0 0.0
    }

    light "Light" 
    {
        parent "Light_Node" 
        type directional
        diffuse 1.0 0.0 0.0
        specular 1.0 0.0 0.0
        ambient 0.2 0.2 0.2
    }

    scene_node "Quad_Node" 
    {
    }

    object "Quad" 
    {
        parent "Quad_Node" 

        mesh Quad
        {
            type custom

            submesh
            {
                material "Relief" 

                vertex 0.0 0.0 0.0
                uv 0.0 0.0
                vertex 0.0 1.0 0.0
                uv 0.0 1.0
                vertex 1.0 1.0 0.0
                uv 1.0 1.0
                vertex 1.0 0.0 0.0
                uv 1.0 0.0
                face 0 1 2 3
            }
        }
    }
}

window "MyFirstWindow" 
{
    render_target
    {
        format  argb32
        depth   depth24s8
        size    1125 600
        scene   "MyFirstScene" 
    }
    fullscreen  false
    vsync       true
}

Rendu de cette scène :

Material Relief : http://projets.developpez.com/documents/31

Files