GetMaterialColorDiffuse (inline)

...

Syntax

//
//   Strong typing definition
//

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


//
//   Weak typing definition
//

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

Property owlInstanceMaterial

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