| Context(s) | shading | 
                
                    
                    
                    
                        int  getmaterialid()
                    
                    
                
            
Returns the material id of the primitive being shaded. The id corresponds to the material being evaluated and accounts for overrides from style sheets and detail assignments.
| shading | 
                
                    
                                 |