Project

General

Profile

Exemples de materiaux

Documentation utilisateur
12/21/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
        }
    }
}

Files

relief.zip (1.09 MB) relief.zip Données relatives au material Relief dragonjoker59, 03/18/2011 01:57 PM
textureenvironment.zip (566 KB) textureenvironment.zip Données relatives au material TextureEnvironment dragonjoker59, 03/18/2011 01:57 PM