GetMaterialColorSpecular (inline)

...

Syntax

//
//   Strong typing definition
//

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


//
//   Weak typing definition
//

static  inline  uint32_t    GetMaterialColorSpecular(
                                    int64_t                 owlInstanceMaterial
                                )
{
    uint32_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.