imasiprojects / ImasiEngine

3D Engine Library, by Imasi
2 stars 1 forks source link

Introduce Material #37

Closed ivancea closed 8 years ago

ivancea commented 8 years ago

Original report by Iván Sanz (Bitbucket: ivansanz, GitHub: isc30).


Something like:

Material =

struct MaterialProperties {

        float shininess = 10.f;
        vec3 specularColor = vec3(1, 1, 1);

    };

    struct Material {

        Texture* diffuseMap = nullptr;
        Texture* specularMap = nullptr;
        Texture* normalMap = nullptr;
        MaterialProperties materialProperties;

};