void PMFinish::readAttributes( const PMXMLHelper& h ) { Base::readAttributes( h ); m_enableAmbient = h.boolAttribute( "enable_ambient", false ); m_enableDiffuse = h.boolAttribute( "enable_diffuse", false ); m_enableBrilliance = h.boolAttribute( "enable_brilliance", false ); m_enableCrand = h.boolAttribute( "enable_crand", false ); m_enablePhong = h.boolAttribute( "enable_phong", false ); m_enablePhongSize = h.boolAttribute( "enable_phong_size", false ); m_enableMetallic = h.boolAttribute( "enable_metallic", false ); m_enableSpecular = h.boolAttribute( "enable_specular", false ); m_enableRoughness = h.boolAttribute( "enable_roughness", false ); m_enableReflection = h.boolAttribute( "enable_reflection", false ); m_enableReflectionMin = h.boolAttribute( "enable_reflection_min", false ); m_enableRefFalloff = h.boolAttribute( "enable_reflection_falloff", false ); m_enableRefExponent = h.boolAttribute( "enable_reflection_exponent", false ); m_enableRefMetallic = h.boolAttribute( "enable_reflection_metallic", false ); m_irid = h.boolAttribute( "irid", false ); m_ambientColor = h.colorAttribute( "ambient", ambientColorDefault ); m_diffuse = h.doubleAttribute( "diffuse", diffuseDefault ); m_brilliance = h.doubleAttribute( "brilliance", crandDefault ); m_crand = h.doubleAttribute( "crand", crandDefault ); m_conserveEnergy = h.boolAttribute( "conserve_energy", false ); m_phong = h.doubleAttribute( "phong", phongDefault ); m_phongSize = h.doubleAttribute( "phongsize", phongSizeDefault ); m_metallic = h.doubleAttribute( "metallic", metallicDefault ); m_specular = h.doubleAttribute( "specular", specularDefault ); m_roughness = h.doubleAttribute( "roughness", roughnessDefault ); m_iridAmount = h.doubleAttribute( "irid_amount", iridAmountDefault ); m_iridThickness = h.doubleAttribute( "irid_thickness", iridThicknessDefault ); m_iridTurbulence = h.doubleAttribute( "irid_turbulence", iridTurbulenceDefault ); m_reflectionColor = h.colorAttribute( "reflection", reflectionColorDefault ); m_reflectionMinColor = h.colorAttribute( "reflection_min", reflectionColorDefault ); m_reflectionFresnel = h.boolAttribute( "reflection_fresnel", false ); m_reflectionFalloff = h.doubleAttribute( "reflection_falloff", reflectionFalloffDefault ); m_reflectionExponent = h.doubleAttribute( "reflection_exponent", reflectionExponentDefault ); m_reflectionMetallic = h.doubleAttribute( "reflection_metallic", reflectionMetallicDefault ); }