GetMaterialColorEmissive (inline)

...

Syntax

//
//   Linux, MacOS and non-Visual Studio Windows solutions (pure C++11 / C++98)
//

static  inline  int32_t GetMaterialColorEmissive(
                                int64_t             owlInstanceMaterial
                            )
{
    int32_t emissive = 0;
    GetMaterialColor(
            owlInstanceMaterial,
            nullptr,        //    ambient
            nullptr,        //    diffuse
            &emissive,
            nullptr         //    specular
        );
    return  emissive;
}


//
//   Visual Studio for Windows
//

static  inline  __int32 GetMaterialColorEmissive(
                                __int64             owlInstanceMaterial
                            )
{
    int32_t emissive = 0;
    GetMaterialColor(
            owlInstanceMaterial,
            nullptr,        //    ambient
            nullptr,        //    diffuse
            &emissive,
            nullptr         //    specular
        );
    return  emissive;
}
    

Property owlInstanceMaterial

Size: 64 bit / 8 byte (value)
The handle of the Material instance.