GetMaterialColorSpecular (inline)

...

Syntax

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

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


//
//   Visual Studio for Windows
//

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

Property owlInstanceMaterial

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