Class MaterialInterface
Inherited Members
Namespace: UnityEngine.Pixyz.Material
Assembly: Unity.Pixyz.SDKPlus.Editor.dll
Syntax
public class MaterialInterface : Interface
Methods
| Name | Description |
|---|---|
| AddImageChangedCallback(ImageChangedDelegate, IntPtr) | |
| AddMaterialChangedCallback(MaterialChangedDelegate, IntPtr) | |
| AddUniformProperty(uint, string, ShaderUniformType) | Add a shader uniform parameter to the given custom pattern |
| AreOpaques(MaterialList) | Check if some materials are opaques. Function will return 'False' for each material if:\n- The 'Opacity' Coeff is not 1.0\n- The 'Opacity' property is a Texture\n- The 'Albedo' property is a Texture and at least one pixel of the texture has an alpha value |
| ClearAllMaterials() | Remove and delete all the materials |
| ConfigureFunctionLogger(string, bool, bool, bool) | |
| ConvertFloat32To8BitsImage(uint, double, double) | Returns a new image from the given converter from 32bits float to a 8Bits (e.g. depth render map) |
| ConvertHeightMapToNormalMap(uint, double) | Convert a height map to a normal map |
| CopyMaterial(uint, bool) | copies a material |
| CreateCustomMaterialPattern(string) | Create a new custom material pattern |
| CreateImageFromData(ByteList, string) | Import an Image from only its data |
| CreateImageFromDefinition(ImageDefinition) | Import an image from its raw data |
| CreateImagesFromDefinitions(ImageDefinitionList) | Import images from their raw data |
| CreateMaterial(string, string, bool) | Create a new material from pattern |
| CreateMaterialFromDefinition(MaterialDefinition) | Create PBR material from a material definition |
| CreateMaterialsFromDefinitions(MaterialDefinitionList) | Create PBR materials from material definitions |
| CreateMaterialsFromMaps(string) | Automatically creates PBR materials when importing PBR texture maps from a folder |
| ExportImage(uint, string) | Export an image |
| FillUnusedPixels(uint, ColorAlpha) | Fill unused pixels by propagating and averaging used pixels |
| FilterAO(uint, uint, double, double, double, int, bool, double) | Filter an AO map using ATrous method |
| FindCustomMaterialPatternByName(string) | Returns the material pattern which has the given name |
| FindMaterialsByPattern(string) | Returns all materials using the given pattern |
| FindMaterialsByProperty(string, string, bool) | Returns all materials which match a given property value |
| GenerateColorFromIndex(int) | Generate a unique color from an index (only 16M differents color can be generated, if index is greater than 16777216, the color is not guaranted to be unique) |
| GenerateUniqueColors(int) | Generate a set of unique colors (max 16M differents color can be generated, if count is greater than 16777216, the colors are not guaranted to be unique) |
| GetAllImages(MaterialList) | Returns all the images loaded in the current session or from a list of materials |
| GetAllMaterialPatterns() | Returns all the material patterns in the current session |
| GetAllMaterials() | Retrieve the list of all the materials in the material library |
| GetColorMaterialInfos(uint) | Get color material properties |
| GetCustomMaterialPattern(uint) | Returns the custom material pattern associated to the custom material |
| GetExportImageFormats() | Returns image format names and extensions which can be exported in Pixyz |
| GetImageDefinition(uint) | Returns the raw data of an image |
| GetImageDefinitions(ImageList) | Returns the raw data of a set of images |
| GetImagePixelColor(uint, int, int) | Returns the color of a given pixel in an image |
| GetImageSize(uint) | Returns the size of an image |
| GetImagesSizes(ImageList) | Returns the sizes of multiple images |
| GetImportImageFormats() | Returns the image format names and extensions which can be imported in Pixyz |
| GetImpostorMaterialInfos(uint) | Get impostor texture material properties |
| GetLastError() | |
| GetMaterialDefinition(uint) | Returns the properties of a PBR Material |
| GetMaterialDefinitions(MaterialList) | Returns the properties of a set of PBR Materials |
| GetMaterialMainColor(uint) | Get the main color on any material pattern type |
| GetMaterialPattern(uint) | Gets the MaterialPattern name of the material |
| GetMaterialPatternType(uint) | Returns the MaterialPatternType name of the material |
| GetMaterialUserData(uint, uint) | Set or replace a userdata stored on an material |
| GetMultipleMaterialUserData(uint, MaterialList) | Batch version of getMaterialUserData |
| GetPBRMaterialInfos(uint) | Get PBR material properties |
| GetPointsAndMaterialFromText(string, string, int, Matrix4, Color, double, double) | Returns a list of 3D Points and a material from a string and a fontname |
| GetStandardMaterialInfos(uint) | Get standard material properties |
| GetUniformPropertyType(uint, string) | Get a shader uniform shader property type |
| GetUnlitTextureMaterialInfos(uint) | Get unlit texture material properties |
| HasMaterialUserData(uint, uint) | Set or replace a userdata stored on an material |
| HasMultipleMaterialUserData(uint, MaterialList) | Batch version of hasMaterialUserData |
| ImportImage(string) | Import an image |
| IsOpaque(uint) | Check if material is opaque. Function will return 'False' if:\n- The 'Opacity' Coeff is not 1.0\n- The 'Opacity' property is a Texture\n- The 'Albedo' property is a Texture and at least one pixel of the texture has an alpha value |
| MakeMaterialNamesUnique(MaterialList) | Rename materials to have a unique name for each one |
| RemapIndexMap(ImageList, int) | create remapped versions of index maps |
| RemoveImageChangedCallback(uint) | |
| RemoveMaterialChangedCallback(uint) | |
| ResizeImage(uint, int, int, ResizeFilterMethod) | Resize an image |
| SetCoeffOrTextureProperty(uint, string, CoeffOrTexture) | Set a CoeffOrTexture property |
| SetColorAlphaProperty(uint, string, ColorAlpha) | Set a ColorAlpha property |
| SetColorOrTextureProperty(uint, string, ColorOrTexture) | Set a ColorOrTexture property |
| SetFragmentShader(uint, string) | Set the fragment shader of a custom pattern |
| SetMaterialMainColor(uint, ColorAlpha) | Set the main color on any material pattern type |
| SetMaterialPattern(uint, string) | Sets the MaterialPattern name of the material |
| SetMaterialUserData(uint, uint, IntPtr) | Set or replace a userdata stored on an material |
| SetMultipleMaterialUserData(uint, MaterialList, PtrList) | Batch version of setMaterialUserData |
| SetPBRMaterialInfos(uint, PBRMaterialInfos) | Set PBR material properties |
| SetVertexShader(uint, string) | Set the vertex shader of a custom pattern |
| SubscribeToMaterialUserData() | subscribe to material user data. multiple different userdata can be stored on the same materials if subscribeToMaterialUserData is called multiple times |
| UnsetMaterialUserData(uint, uint) | Unset the userdata stored on an material |
| UnsetMultipleMaterialUserData(uint, MaterialList) | Batch version of unsetMaterialUserData |
| UnsubscribeFromMaterialUserData(uint) | |
| UpdateImageFromDefinition(uint, ImageDefinition) | Update an image from its raw data |
| UpdateImagesFromDefinitions(ImageList, ImageDefinitionList) | Update images from their raw data |