You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Material
santorac c2abd2d74f Updated the naming convention for material property "names" vs "IDs".
A "property name" is the name of the just the property without regard to the group that it's in. A "group name" is the name of the group. And a "property ID" is the full unique name of a property in the form "groupName.propertyName". This is important preparation for upcoming changes where property sets can contain other property sets, and property IDs can be arbitrarily long like "layer1.baseColor.factor" for example.

The naming changes include variables, some code comments, and the .materialtype file format. I was able to make these changes in a backward compatible way so a property or group "id" field has been replaced with a "name" field, but "id" is still supported for compatibility. StandardPBR, EnhancedPBR, StandardMultilayerPBR, and Skin have all been updated. Note that MinimalPBR has not been updated, proving that backward compatibility works. (We can update this one too at some point though).

Testing:
Opened up materials in the material editor.
Ran AtomSampleViewer in dx12 and vulkan with no new failures.

Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
4 years ago
..
EditorMaterialComponent.cpp Merge branch 'development' into Atom/guthadam/multiple_dockable_pinned_material_component_property_editor 4 years ago
EditorMaterialComponent.h Merge branch 'development' into Atom/guthadam/multiple_dockable_pinned_material_component_property_editor 4 years ago
EditorMaterialComponentExporter.cpp Implemented helper method of QFileDialog::getSaveFileName to prevent user from saving files with invalid names. 4 years ago
EditorMaterialComponentExporter.h Removed the GetLabelByAssetId function since now we can use the display name that comes with the ModelMaterialSlot. 4 years ago
EditorMaterialComponentInspector.cpp Updated the naming convention for material property "names" vs "IDs". 4 years ago
EditorMaterialComponentInspector.h Updated the naming convention for material property "names" vs "IDs". 4 years ago
EditorMaterialComponentSlot.cpp Changing material component property inspector to dockable view pane 4 years ago
EditorMaterialComponentSlot.h Changing material component property inspector to dockable view pane 4 years ago
EditorMaterialComponentUtil.cpp Updated the naming convention for material property "names" vs "IDs". 4 years ago
EditorMaterialComponentUtil.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
EditorMaterialModelUvNameMapInspector.cpp Updated the naming convention for material property "names" vs "IDs". 4 years ago
EditorMaterialModelUvNameMapInspector.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
EditorMaterialSystemComponent.cpp Changing material component property inspector to dockable view pane 4 years ago
EditorMaterialSystemComponent.h Changing material component property inspector to dockable view pane 4 years ago
MaterialBrowserInteractions.cpp Changing material component property inspector to dockable view pane 4 years ago
MaterialBrowserInteractions.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
MaterialComponent.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
MaterialComponent.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
MaterialComponentConfig.cpp Refactored how model material slots work in preparation to support more flexible material conversion options for the scene asset pipeline. The material slot IDs are based on the MaterialUid that come from SceneAPI. Since these IDs are also used as the AssetId sub-ID for the converted material assets, the system was just checking the material asset sub-ID to determine the material slot ID. But in order to support certain FBX material conversion options, we needed to break this tie, so the slot ID is separate from the AssetId of the material in that slot. This will allow some other material to be used in the slot, instead of being forced to use one that was generated from the FBX. 4 years ago
MaterialComponentController.cpp restoring changes lost in merge 4 years ago
MaterialComponentController.h Changing material component property inspector to dockable view pane 4 years ago
MaterialThumbnail.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
MaterialThumbnail.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago