Projet

Général

Profil

Exemples de materiaux

Documentation utilisateur
21/12/2010

material Relief
{
    pass
    {
        ambient 0.5 0.5 0.5 1.0
        diffuse 0.4 0.4 0.4 1.0
        emissive 0.0 0.0 0.0 1.0
        specular 0.774597 0.774597 0.774597 1.0
        shininess 76.8

        texture_unit
        {
            image rockbump.jpg
            colour 1.0 1.0 1.0 1.0
        }

        texture_unit
        {
            image rockbump.tga
            colour 1.0 1.0 1.0 1.0
        }

        gl_shader_program
        {
            vertex_program
            {
                file Relief.vert
            }

            pixel_program
            {
                file Relief.frag

                variable
                {
                    type int
                    name in_Texture
                    value 0
                }

                variable
                {
                    type int
                    name in_Relief
                    value 1
                }

                variable
                {
                    type int
                    name in_LinearSearchSteps
                    value 20
                }

                variable
                {
                    type int
                    name in_BinarySearchSteps
                    value 5
                }

                variable
                {
                    type float
                    name in_Depth
                    value 0.075
                }

                variable
                {
                    type float
                    name in_Tile
                    value 1.0
                }
            }
        }
    }
}
material TextureEnvironment
{
    pass
    {
        ambient 0.847059 0.847059 0.847059 1.0
        diffuse 1.0 1.0 1.0 1.0
        emissive 0.5 0.5 0.5 1.0
        specular 0.847059 0.847059 0.847059 1.0
        shininess 128
        double_face true
        blend_func src_alpha one_minus_src_alpha

        texture_unit
        {
            rgb_blend modulate current current
            image cadre_transparent.png
            colour 1 1 1 1
        }

        texture_unit
        {
            rgb_blend modulate previous texture
            image mur_Ambiant.bmp
            colour 1 1 1 1
        }
    }
}

Fichiers

relief.zip (1,09 Mo) relief.zip Données relatives au material Relief dragonjoker59, 18/03/2011 13:57
textureenvironment.zip (566 ko) textureenvironment.zip Données relatives au material TextureEnvironment dragonjoker59, 18/03/2011 13:57