public CellProperty getActiveCell(String tableName, GroupProperty group, int row, int col, String sheetName) { try { var request = new RestRequest(ResourcePath + "/cell/active/" + tableName + "/" + row + "/" + col + "/" + sheetName, Method.POST); System.Web.Script.Serialization.JavaScriptSerializer serializer = new System.Web.Script.Serialization.JavaScriptSerializer(); serializer.MaxJsonLength = int.MaxValue; string json = serializer.Serialize(group); request.AddParameter("application/json", json, ParameterType.RequestBody); var response = RestClient.ExecuteTaskAsync(request); try { CellProperty result = RestSharp.SimpleJson.DeserializeObject <CellProperty>(response.Result.Content); return(result); } catch (Exception) { return(null); } } catch (Exception e) { throw new BcephalException("Unable to close table : " + tableName, e); } }
public void UpdateApplicationGroup( Microsoft.TeamFoundation.Framework.Client.IdentityDescriptor groupDescriptor, GroupProperty groupProperty, string newValue) { throw new NotSupportedException(); }
public void SetGroupProperty(LtePredictionGroup pg, GroupProperty property) { float maxSensitivity; pg.Resolution = property.Resolution; pg.HandoverAreaThreshold = property.HandoverAreaThreshold; pg.DiffFreqHandoverAreaGate = property.DiffFreqHandoverAreaGate; pg.RxSensitivity = property.RxSensitivity; pg.ULTxSensitivity = property.TxSensitivity; pg.InterferenceGate = property.InterferenceGate; pg.CellEdgeCoverageProbability = property.CellEdgeCoverageProbability; pg.IsShadowdowAccout = property.IsShadowdowAccout; //add 2011.6.2 pg.IsFDD = property.IsFDD; pg.IsIndoorCoverage = property.IsIndoorCoverage; pg.RsShifting = property.RSShifting; pg.IsChannelIndexSaved = true; this.AddRegionToGroup(pg, property.regionIndex); this.AddTrafficDataToGroup(pg, property); this.SaveFreqBand(pg, property); pg.MaxSensitivity = property.MaxSensitivity; pg.ULMaxSensitivity = property.ULMaxSensitivity; if (pg.MaxSensitivity < pg.RxSensitivity) { maxSensitivity = pg.MaxSensitivity; pg.MaxSensitivity = pg.RxSensitivity; pg.RxSensitivity = maxSensitivity; } if (pg.ULMaxSensitivity < pg.ULTxSensitivity) { maxSensitivity = pg.ULMaxSensitivity; pg.ULMaxSensitivity = pg.ULTxSensitivity; pg.ULTxSensitivity = maxSensitivity; } pg.ChannelIndexDic = property.channelIndexDic; }
public virtual bool buildCellProperty(String tableName, GroupProperty groupProperty) { try { var request = new RestRequest(ResourcePath + "/build/cell/" + tableName, Method.POST); System.Web.Script.Serialization.JavaScriptSerializer serializer = new System.Web.Script.Serialization.JavaScriptSerializer(); serializer.MaxJsonLength = int.MaxValue; string json = serializer.Serialize(groupProperty); request.AddParameter("application/json", json, ParameterType.RequestBody); var response = RestClient.ExecuteTaskAsync(request); try { bool result = RestSharp.SimpleJson.DeserializeObject <bool>(response.Result.Content); return(result); } catch (Exception) { return(false); } } catch (Exception e) { throw new BcephalException("Unable to close table : " + tableName, e); } }
public override int GetHashCode() { int hash = 1; if (booking_ != null) { hash ^= Booking.GetHashCode(); } if (GroupName.Length != 0) { hash ^= GroupName.GetHashCode(); } if (GroupNumber.Length != 0) { hash ^= GroupNumber.GetHashCode(); } if (GroupContactName.Length != 0) { hash ^= GroupContactName.GetHashCode(); } if (GroupType != 0) { hash ^= GroupType.GetHashCode(); } if (groupProperty_ != null) { hash ^= GroupProperty.GetHashCode(); } hash ^= quantities_.GetHashCode(); return(hash); }
protected void Page_Load(object sender, EventArgs e) { _groupProperty = BLL.GroupProperty.GetGroupProperty(Group.Id); if (!IsPostBack) { PopulateForm(); } }
public GroupPropertyDTO(GroupProperty source) : base(source) { GroupPropertyID = source.GroupPropertyID; GroupID = source.GroupID; OrganizationID = source.OrganizationID; Name = source.Name; Value = source.Value; }
private void AddTrafficDataToGroup(LtePredictionGroup pg, GroupProperty property) { pg.TerminalValue = property.terminalIndexes; Terminal terminal = this.m_ITraffic.FindTerminalList(NetWorkType.LTE)[property.terminalIndexes]; pg.TrafficTerminal = terminal; pg.ServiceValue = property.serviceIndexes; Service service = this.m_ITraffic.FindServiceList(NetWorkType.LTE)[property.serviceIndexes]; pg.TrafficService = service; UnionPsService service2 = service as UnionPsService; LTEService service3 = service2.PSServiceDic[NetWorkType.LTE] as LTEService; pg.MobilityValue = property.mobIndexes; Mobility mobility = this.m_ITraffic.MobilityList[property.mobIndexes]; pg.TrafficMobility = mobility; }
protected void btnSubmit_OnClick(object sender, EventArgs e) { RequiresAuthorizationOrManagedGroup(Authorizations.UpdateGroup, Group.Id); var groupProperty = new GroupProperty { GroupId = Group.Id, ImageId = Convert.ToInt32(ddlComputerImage.SelectedValue), ImageProfileId = Convert.ToInt32(ddlComputerImage.SelectedValue) == -1 ? -1 : Convert.ToInt32(ddlImageProfile.SelectedValue), Description = txtComputerDesc.Text, SiteId = Convert.ToInt32(ddlSite.SelectedValue), BuildingId = Convert.ToInt32(ddlBuilding.SelectedValue), RoomId = Convert.ToInt32(ddlRoom.SelectedValue), CustomAttribute1 = txtCustom1.Text, CustomAttribute2 = txtCustom2.Text, CustomAttribute3 = txtCustom3.Text, CustomAttribute4 = txtCustom4.Text, CustomAttribute5 = txtCustom5.Text, ImageEnabled = Convert.ToInt16(chkImage.Checked), ImageProfileEnabled = Convert.ToInt16(chkProfile.Checked), DescriptionEnabled = Convert.ToInt16(chkDescription.Checked), SiteEnabled = Convert.ToInt16(chkSite.Checked), BuildingEnabled = Convert.ToInt16(chkBuilding.Checked), RoomEnabled = Convert.ToInt16(chkRoom.Checked), CustomAttribute1Enabled = Convert.ToInt16(chkCustom1.Checked), CustomAttribute2Enabled = Convert.ToInt16(chkCustom2.Checked), CustomAttribute3Enabled = Convert.ToInt16(chkCustom3.Checked), CustomAttribute4Enabled = Convert.ToInt16(chkCustom4.Checked), CustomAttribute5Enabled = Convert.ToInt16(chkCustom5.Checked), ProxyEnabledEnabled = Convert.ToInt16(chkProxyReservation.Checked), BootFileEnabled = Convert.ToInt16(chkBootFile.Checked), TftpServerEnabled = Convert.ToInt16(chkTftp.Checked), ProxyEnabled = Convert.ToInt16(chkProxyEnabled.Checked), TftpServer = txtTftp.Text, BootFile = ddlBootFile.Text }; if (_groupProperty == null) { BLL.GroupProperty.AddGroupProperty(groupProperty); EndUserMessage = "Successfully Updated Group Properties"; } else { groupProperty.Id = _groupProperty.Id; BLL.GroupProperty.UpdateGroupProperty(groupProperty); EndUserMessage = "Successfully Updated Group Properties"; } }
public void MergeFrom(GroupBookingExt other) { if (other == null) { return; } if (other.booking_ != null) { if (booking_ == null) { booking_ = new global::HOLMS.Types.Booking.Groups.GroupBooking(); } Booking.MergeFrom(other.Booking); } if (other.GroupName.Length != 0) { GroupName = other.GroupName; } if (other.GroupNumber.Length != 0) { GroupNumber = other.GroupNumber; } if (other.GroupContactName.Length != 0) { GroupContactName = other.GroupContactName; } if (other.GroupType != 0) { GroupType = other.GroupType; } if (other.groupProperty_ != null) { if (groupProperty_ == null) { groupProperty_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator(); } GroupProperty.MergeFrom(other.GroupProperty); } quantities_.Add(other.quantities_); }
public StackLitGUI() { _baseMaterialProperties = new GroupProperty(this, "_BaseMaterial", new BaseProperty[] { // JFFTODO: Find the proper condition, and proper way to display this. new Property(this, k_DoubleSidedNormalMode, "Normal mode", "This will modify the normal base on the selected mode. Mirror: Mirror the normal with vertex normal plane, Flip: Flip the normal.", false), }); // EnableDetails = new Property(this, k_EnableDetails, "Enable Details", "Enable Detail", true); EnableSSS = new Property(this, k_EnableSubsurfaceScattering, "Enable Subsurface Scattering", "Enable Subsurface Scattering", true); EnableTransmission = new Property(this, k_EnableTransmission, "Enable Transmission", "Enable Transmission", true); EnableCoat = new Property(this, k_EnableCoat, "Enable Coat", "Enable coat layer with true vertical physically based BSDF mixing", true); EnableCoatNormalMap = new Property(this, k_EnableCoatNormalMap, "Enable Coat Normal Map", "Enable separate top coat normal map", true); EnableAnisotropy = new Property(this, k_EnableAnisotropy, "Enable Anisotropy", "Enable anisotropy, correct anisotropy for punctual light but very coarse approximated for reflection", true); EnableDualSpecularLobe = new Property(this, k_EnableDualSpecularLobe, "Enable Dual Specular Lobe", "Enable a second specular lobe, aim to simulate a mix of a narrow and a haze lobe that better match measured material", true); EnableIridescence = new Property(this, k_EnableIridescence, "Enable Iridescence", "Enable physically based iridescence layer", true); EnableGeometricNormalFiltering = new Property(this, k_GeometricNormalFilteringEnabled, "Enable Geometric filtering", "Enable specular antialiasing", true); EnableTextureNormalFiltering = new Property(this, k_TextureNormalFilteringEnabled, "Enable Texture filtering", "Require normal map to use _NA or _OSNA suffix for normal map name", true); // All material properties // All GroupPropery below need to define a // [HideInInspector] _XXXShow("_XXXShow", Float) = 0.0 parameter in the StackLit.shader to work _materialProperties = new GroupProperty(this, "_Material", new BaseProperty[] { new GroupProperty(this, "_MaterialFeatures", "Material Features", new BaseProperty[] { EnableDetails, EnableDualSpecularLobe, EnableAnisotropy, EnableCoat, EnableCoatNormalMap, EnableIridescence, EnableSSS, EnableTransmission }), new GroupProperty(this, "_Standard", "Standard", new BaseProperty[] { new TextureProperty(this, k_BaseColorMap, k_BaseColor, "Base Color + Opacity", "Albedo (RGB) and Opacity (A)", true, false), new TextureProperty(this, k_MetallicMap, k_Metallic, "Metallic", "Metallic", false, false), new Property(this, k_DielectricIor, "DieletricIor", "IOR use for dielectric material (i.e non metallic material)", false), new TextureProperty(this, k_SmoothnessAMap, k_SmoothnessA, "Smoothness", "Smoothness", false, false), new TextureProperty(this, k_NormalMap, k_NormalScale, "Normal", "Normal Map", true, false, true), new TextureProperty(this, k_AmbientOcclusionMap, k_AmbientOcclusion, "AmbientOcclusion", "AmbientOcclusion Map", false, false), }), new GroupProperty(this, "_Details", "Details", new BaseProperty[] { new TextureProperty(this, k_DetailMaskMap, "", "Detail Mask Map", "Detail Mask Map", false, false), new TextureProperty(this, k_DetailNormalMap, k_DetailNormalScale, "Detail Normal Map", "Detail Normal Map Scale", true, false, true), new TextureProperty(this, k_DetailSmoothnessMap, k_DetailSmoothnessScale, "Detail Smoothness", "Detail Smoothness", true, false), }, _ => EnableDetails.BoolValue == true), new GroupProperty(this, "_DualSpecularLobe", "Dual Specular Lobe", new BaseProperty[] { new TextureProperty(this, k_SmoothnessBMap, k_SmoothnessB, "Smoothness B", "Smoothness B", false, false), new Property(this, k_LobeMix, "Lobe Mix", "Lobe Mix", false), }, _ => EnableDualSpecularLobe.BoolValue == true), new GroupProperty(this, "_Anisotropy", "Anisotropy", new BaseProperty[] { new Property(this, k_Anisotropy, "Anisotropy", "Anisotropy of base layer", false), // TODO: Tangent map and rotation }, _ => EnableAnisotropy.BoolValue == true), new GroupProperty(this, "_Coat", "Coat", new BaseProperty[] { new TextureProperty(this, k_CoatSmoothnessMap, k_CoatSmoothness, "Coat smoothness", "Coat smoothness", false), new TextureProperty(this, k_CoatNormalMap, k_CoatNormalScale, "Coat Normal Map", "Coat Normal Map", true, false, true, _ => EnableCoatNormalMap.BoolValue == true), new Property(this, "_CoatIor", "Coat IOR", "Index of refraction", false), new Property(this, "_CoatThickness", "Coat Thickness", "Coat thickness", false), new Property(this, "_CoatExtinction", "Coat Absorption", "Coat absorption tint (the thicker the coat, the more that color is removed)", false), }, _ => EnableCoat.BoolValue == true), new GroupProperty(this, "_Iridescence", "Iridescence", new BaseProperty[] { //just to test: to use the same EvalIridescence as lit, find a good mapping for the top IOR (over the iridescence dielectric film) //when having iridescence: //new Property(this, "_IridescenceIor", "TopIOR", "Index of refraction on top of iridescence layer", false), new TextureProperty(this, k_IridescenceMaskMap, k_IridescenceMask, "Iridescence Mask", "Iridescence Mask", false), new TextureProperty(this, k_IridescenceThicknessMap, k_IridescenceThickness, "Iridescence thickness (Remap to 0..3000nm)", "Iridescence thickness (Remap to 0..3000nm)", false), }, _ => EnableIridescence.BoolValue == true), new GroupProperty(this, "_SSS", "Sub-Surface Scattering", new BaseProperty[] { new DiffusionProfileProperty(this, k_DiffusionProfile, "Diffusion Profile", "A profile determines the shape of the SSS/transmission filter.", false), new TextureProperty(this, k_SubsurfaceMaskMap, k_SubsurfaceMask, "Subsurface mask map (R)", "Determines the strength of the subsurface scattering effect.", false, false), }, _ => EnableSSS.BoolValue == true), new GroupProperty(this, "_Transmission", "Transmission", new BaseProperty[] { new DiffusionProfileProperty(this, k_DiffusionProfile, "Diffusion Profile", "A profile determines the shape of the SSS/transmission filter.", false, _ => EnableSSS.BoolValue == false), new TextureProperty(this, k_ThicknessMap, k_Thickness, "Thickness", "If subsurface scattering is enabled, low values allow some light to be transmitted through the object.", false), }, _ => EnableTransmission.BoolValue == true), new GroupProperty(this, "_Emissive", "Emissive", new BaseProperty[] { new TextureProperty(this, k_EmissiveColorMap, k_EmissiveColor, "Emissive Color", "Emissive", true, false), new Property(this, k_AlbedoAffectEmissive, "Albedo Affect Emissive", "Specifies whether or not the emissive color is multiplied by the albedo.", false), }), new GroupProperty(this, "_SpecularAntiAliasing", "Specular Anti-Aliasing", new BaseProperty[] { EnableTextureNormalFiltering, EnableGeometricNormalFiltering, new Property(this, "_SpecularAntiAliasingThreshold", "Threshold", "Threshold", false, _ => (EnableGeometricNormalFiltering.BoolValue || EnableTextureNormalFiltering.BoolValue) == true), new Property(this, "_SpecularAntiAliasingScreenSpaceVariance", "Screen Space Variance", "Screen Space Variance (should be less than 0.25)", false, _ => EnableGeometricNormalFiltering.BoolValue == true), }), new GroupProperty(this, "_Debug", "Debug", new BaseProperty[] { new Property(this, "_VlayerRecomputePerLight", "Vlayer Recompute Per Light", "", false), new Property(this, "_VlayerUseRefractedAnglesForBase", "Vlayer Use Refracted Angles For Base", "", false), new Property(this, "_DebugEnable", "Debug Enable", "Switch to a debug version of the shader", false), new Property(this, "_DebugEnvLobeMask", "DebugEnvLobeMask", "xyz is Environments Lobe 0 1 2 Enable, w is Enable VLayering", false), new Property(this, "_DebugLobeMask", "DebugLobeMask", "xyz is Analytical Lobe 0 1 2 Enable", false), new Property(this, "_DebugAniso", "DebugAniso", "x is Hack Enable, y is factor", false), }), }); }
public StackLitGUI() { _baseMaterialProperties = new GroupProperty(this, "_BaseMaterial", new BaseProperty[] { // JFFTODO: Find the proper condition, and proper way to display this. new Property(this, k_DoubleSidedNormalMode, "Normal mode", "This will modify the normal base on the selected mode. Mirror: Mirror the normal with vertex normal plane, Flip: Flip the normal.", false), }); // EnableSSS = new Property(this, k_EnableSubsurfaceScattering, "Enable Subsurface Scattering", "Enable Subsurface Scattering", true); EnableTransmission = new Property(this, k_EnableTransmission, "Enable Transmission", "Enable Transmission", true); EnableCoat = new Property(this, k_EnableCoat, "Enable Coat", "Enable coat layer with true vertical physically based BSDF mixing", true); EnableAnisotropy = new Property(this, k_EnableAnisotropy, "Enable Anisotropy", "Enable anisotropy, correct anisotropy for punctual light but very coarse approximated for reflection", true); EnableDualSpecularLobe = new Property(this, k_EnableDualSpecularLobe, "Enable Dual Specular Lobe", "Enable a second specular lobe, aim to simulate a mix of a narrow and a haze lobe that better match measured material", true); EnableIridescence = new Property(this, k_EnableIridescence, "Enable Iridescence", "Enable physically based iridescence layer", true); // All material properties _materialProperties = new GroupProperty(this, "_Material", new BaseProperty[] { new GroupProperty(this, "_MaterialFeatures", "Material Features", new BaseProperty[] { EnableDualSpecularLobe, EnableAnisotropy, EnableCoat, EnableIridescence, EnableSSS, EnableTransmission }), new GroupProperty(this, "_Standard", "Standard", new BaseProperty[] { new TextureProperty(this, k_BaseColorMap, k_BaseColor, "Base Color + Opacity", "Albedo (RGB) and Opacity (A)", true, false), new TextureProperty(this, k_MetallicMap, k_Metallic, "Metallic", "Metallic", false, false), new Property(this, k_DielectricIor, "DieletricIor", "IOR use for dielectric material (i.e non metallic material)", false), new TextureProperty(this, k_SmoothnessAMap, k_SmoothnessA, "Smoothness", "Smoothness", false, false), new TextureProperty(this, k_NormalMap, k_NormalScale, "Normal", "Normal Map", false, false, true), new TextureProperty(this, k_AmbientOcclusionMap, k_AmbientOcclusion, "AmbientOcclusion", "AmbientOcclusion Map", false, false), }), new GroupProperty(this, "_DualSpecularLobe", "Dual Specular Lobe", new BaseProperty[] { new TextureProperty(this, k_SmoothnessBMap, k_SmoothnessB, "Smoothness B", "Smoothness B", false, false), new Property(this, k_LobeMix, "Lobe Mix", "Lobe Mix", false), }, _ => EnableDualSpecularLobe.BoolValue == true), new GroupProperty(this, "_Anisotropy", "Anisotropy", new BaseProperty[] { new Property(this, k_Anisotropy, "Anisotropy", "Anisotropy of base layer", false), // TODO: Tangent map and rotation }, _ => EnableAnisotropy.BoolValue == true), new GroupProperty(this, "_Coat", "Coat", new BaseProperty[] { new TextureProperty(this, k_CoatSmoothnessMap, k_CoatSmoothness, "Coat smoothness", "Coat smoothness", false), new Property(this, "_CoatIor", "Coat IOR", "Index of refraction", false), new Property(this, "_CoatThickness", "Coat Thickness", "Coat thickness", false), new Property(this, "_CoatExtinction", "Coat Absorption", "Coat absorption tint (the thicker the coat, the more that color is removed)", false), }, _ => EnableCoat.BoolValue == true), new GroupProperty(this, "_Iridescence", "Iridescence", new BaseProperty[] { new Property(this, "_IridescenceIor", "IOR", "Index of refraction of iridescence layer", false), new Property(this, "_IridescenceThickness", "Thickness", "Iridescence thickness (Remap to 0..3000nm)", false), }, _ => EnableIridescence.BoolValue == true), new GroupProperty(this, "_SSS", "Sub-Surface Scattering", new BaseProperty[] { new DiffusionProfileProperty(this, k_DiffusionProfile, "Diffusion Profile", "A profile determines the shape of the SSS/transmission filter.", false), new TextureProperty(this, k_SubsurfaceMaskMap, k_SubsurfaceMask, "Subsurface mask map (R)", "Determines the strength of the subsurface scattering effect.", false, false), }, _ => EnableSSS.BoolValue == true), new GroupProperty(this, "_Transmission", "Transmission", new BaseProperty[] { new DiffusionProfileProperty(this, k_DiffusionProfile, "Diffusion Profile", "A profile determines the shape of the SSS/transmission filter.", false, _ => EnableSSS.BoolValue == false), new TextureProperty(this, k_ThicknessMap, k_Thickness, "Thickness", "If subsurface scattering is enabled, low values allow some light to be transmitted through the object.", false), }, _ => EnableTransmission.BoolValue == true), new GroupProperty(this, "_Emissive", "Emissive", new BaseProperty[] { new TextureProperty(this, k_EmissiveColorMap, k_EmissiveColor, "Emissive Color", "Emissive", true, false), new Property(this, k_EmissiveIntensity, "Emissive Intensity", "Emissive", false), new Property(this, k_AlbedoAffectEmissive, "Albedo Affect Emissive", "Specifies whether or not the emissive color is multiplied by the albedo.", false), }), new GroupProperty(this, "_Debug", "Debug", new BaseProperty[] { new Property(this, "_DebugEnable", "Debug Enable", "Switch to a debug version of the shader", false), new Property(this, "_DebugLobeMask", "DebugLobeMask", "xyz is Lobe 0 1 2 Enable, w is Enable VLayering", false), new Property(this, "_DebugAniso", "DebugAniso", "x is Hack Enable, y is factor", false), }), }); }
private void SaveFreqBand(LtePredictionGroup pg, GroupProperty property) { pg.FreqBandIdList.Clear(); pg.FreqBandIdList.AddRange(property.freqBandIndexes); pg.ChannelIndexDic = property.channelIndexDic; }
public virtual bool buildCellProperty(String tableName, GroupProperty groupProperty) { return(true); }
public void UpdateApplicationGroup(IdentityDescriptor groupDescriptor, GroupProperty groupProperty, string newValue) { throw new NotImplementedException(); }
get => (GroupObject)GetValue(GroupProperty); set => SetValue(GroupProperty, value);
set => SetValue(GroupProperty, value);
public StackLitGUI() { _baseMaterialProperties = new GroupProperty(this, "_BaseMaterial", new BaseProperty[] { // JFFTODO: Find the proper condition, and proper way to display this. new Property(this, k_DoubleSidedNormalMode, "Normal mode", "This will modify the normal base on the selected mode. Mirror: Mirror the normal with vertex normal plane, Flip: Flip the normal.", false), }); _materialProperties = new GroupProperty(this, "_Material", new BaseProperty[] { new GroupProperty(this, "_Standard", "Standard", new BaseProperty[] { new TextureProperty(this, k_BaseColorMap, k_BaseColor, "Base Color + Opacity", "Albedo (RGB) and Opacity (A)", true, false), new TextureProperty(this, k_MetallicMap, k_Metallic, "Metallic", "Metallic", false, false), new TextureProperty(this, k_Smoothness1Map, k_Smoothness1, "Smoothness", "Smoothness", false, false), // TODO: Special case for normal maps. new TextureProperty(this, k_NormalMap, k_NormalScale, "Normal", "Normal Map", false, false, true), //new TextureProperty(this, k_BaseColorMap, k_BaseColor, "Dielectric IoR", "Index of Refraction for Dielectric", false), new TextureProperty(this, k_AmbientOcclusionMap, k_AmbientOcclusion, "AmbientOcclusion", "AmbientOcclusion Map", false, false), }), new GroupProperty(this, "_Emissive", "Emissive", new BaseProperty[] { new TextureProperty(this, k_EmissiveColorMap, k_EmissiveColor, "Emissive Color", "Emissive", true, false), new Property(this, k_EmissiveIntensity, "Emissive Intensity", "Emissive", false), new Property(this, k_AlbedoAffectEmissive, "Albedo Affect Emissive", "Specifies whether or not the emissive color is multiplied by the albedo.", false), }), new GroupProperty(this, "_Coat", "Coat", new BaseProperty[] { new Property(this, "_CoatEnable", "Coat Enable", "Enable coat layer with true vertical physically based BSDF mixing", false), new Property(this, "_CoatSmoothness", "Coat Smoothness", "Top layer smoothness", false), new Property(this, "_CoatIor", "Coat IOR", "Index of refraction", false), new Property(this, "_CoatThickness", "Coat Thickness", "Coat thickness", false), new Property(this, "_CoatExtinction", "Coat Absorption", "Coat absorption tint (the thicker the coat, the more that color is removed)", false), }), new GroupProperty(this, "_SSS", "Sub-Surface Scattering", new BaseProperty[] { new DiffusionProfileProperty(this, k_DiffusionProfile, "Diffusion Profile", "A profile determines the shape of the SSS/transmission filter.", false), new TextureProperty(this, k_SubsurfaceMaskMap, k_SubsurfaceMask, "Subsurface mask map (R)", "Determines the strength of the subsurface scattering effect.", false, false), } /*, _ => _materialId == MaterialId.SubSurfaceScattering*/), new GroupProperty(this, "_Lobe2", "Second Specular Lobe", new BaseProperty[] { new TextureProperty(this, k_Smoothness2Map, k_Smoothness2, "Smoothness2", "Smoothness2", false, false), new Property(this, k_LobeMix, "Lobe Mix", "Lobe Mix", false), }), new GroupProperty(this, "_Anisotropy", "Anisotropy", new BaseProperty[] { new Property(this, k_Anisotropy, "Anisotropy", "Anisotropy of base layer", false), }), new GroupProperty(this, "_Transmission", "Transmission", new BaseProperty[] { new DiffusionProfileProperty(this, k_DiffusionProfile, "Diffusion Profile", "A profile determines the shape of the SSS/transmission filter.", false), new TextureProperty(this, k_ThicknessMap, k_Thickness, "Thickness", "If subsurface scattering is enabled, low values allow some light to be transmitted through the object.", false), }), //new GroupProperty(this, "_Iridescence", "Iridescence", new BaseProperty[] //{ // new TextureProperty(this, k_BaseColorMap, k_BaseColor, "Index of Refraction", "Index of Refraction for Iridescence", false), // new TextureProperty(this, k_BaseColorMap, k_BaseColor, "Thickness", "Thickness", false), //}), //new GroupProperty(this, "_Glint", "Glint", new BaseProperty[] //{ // new TextureProperty(this, k_BaseColorMap, k_BaseColor, "Density", "Density:", false), // new TextureProperty(this, k_BaseColorMap, k_BaseColor, "Tint", "Tint", false), //}), }); }