bool mrShaderFilter::Include(ClassDesc& classDesc, DWORD flags) { // [dl | 20may2003] Disregard the 'mr extensions active' flag. /* // If this is a mental ray shader, then never include it if the mental ray // custom attributes are not active. imrShaderClassDesc* shaderClassDesc = Get_mrShaderClassDesc(&classDesc); imrShaderTranslation_ClassInfo* customClassInfo = Get_imrShaderTranslation_ClassInfo(classDesc); if((shaderClassDesc != NULL) || (customClassInfo != NULL)) { imrPreferences* prefs = GetMRPreferences(); if((prefs != NULL) && !prefs->GetMRExtensionsActive()) { return false; } } */ return (ValidateApplyType(classDesc) && ValidateReturnType(classDesc)); }
bool mrShaderFilter::Include(ClassDesc& classDesc, DWORD flags) { return (ValidateApplyType(classDesc) && ValidateReturnType(classDesc)); }