# Material

> Python API types

### BlurFilter

Enum of [core.Int](./core_types#int)

| Name     | Value |
| -------- | ----- |
| Box      | 0     |
| Gaussian | 1     |

Functions accepting this type or a list of this type as a parameter:

* [material.blurImage](./material_functions#blurimage)

***

### CoeffOrTexture

Select between:

* coeff: [core.Coeff](./core_types#coeff)

* texture: [material.Texture](./material_types#texture)
  Functions accepting this type or a list of this type as a parameter:

* [material.setCoeffOrTextureProperty](./material_functions#setcoeffortextureproperty)

***

### ColorMaterialInfos

Fields

| Type  | Name        | Default | Description |
| ----- | ----------- | ------- | ----------- |
| name  | Core.String |         |             |
| color | ColorAlpha  |         |             |

***

### ColorOrTexture

Select between:

* color: [core.Color](./core_types#color)

* texture: [material.Texture](./material_types#texture)
  Functions accepting this type or a list of this type as a parameter:

* [material.setColorOrTextureProperty](./material_functions#setcolorortextureproperty)

***

### CustomMaterialPattern

A Custom MaterialPattern is an entity which defines an abstract custom Shader. It is used by the Materials.
Base class: [core.Entity](./core_types#entity)


**Frame:**
```mermaid
classDiagram
    class CustomMaterialPattern
    Entity <|-- CustomMaterialPattern
    CustomMaterialPattern : +core.String Name
    CustomMaterialPattern : +core.String VertexShaderCode
    CustomMaterialPattern : +core.String FragmentShaderCode
```

Functions accepting this type or a list of this type as a parameter:

* [material.addUniformProperty](./material_functions#adduniformproperty)
* [material.getUniformPropertyType](./material_functions#getuniformpropertytype)
* [material.setFragmentShader](./material_functions#setfragmentshader)
* [material.setVertexShader](./material_functions#setvertexshader)
* [core.cloneEntity](./core_functions#cloneentity)
* [core.deleteEntities](./core_functions#deleteentities)
* [core.entityExists](./core_functions#entityexists)
* [core.getEntityType](./core_functions#getentitytype)
* [core.getEntityTypeString](./core_functions#getentitytypestring)
* [core.addCustomProperties](./core_functions#addcustomproperties)
* [core.addCustomProperty](./core_functions#addcustomproperty)
* [core.getProperties](./core_functions#getproperties)
* [core.getProperty](./core_functions#getproperty)
* [core.getPropertyInfo](./core_functions#getpropertyinfo)
* [core.hasCustomProperty](./core_functions#hascustomproperty)
* [core.hasProperty](./core_functions#hasproperty)
* [core.listProperties](./core_functions#listproperties)
* [core.listPropertiesBatch](./core_functions#listpropertiesbatch)
* [core.removeCustomProperty](./core_functions#removecustomproperty)
* [core.setProperties](./core_functions#setproperties)
* [core.setProperty](./core_functions#setproperty)
* [core.supportCustomProperties](./core_functions#supportcustomproperties)
* [core.unsetProperty](./core_functions#unsetproperty)
* [scene.linkPropertyToAnimation](./scene_functions#linkpropertytoanimation)
* [scene.unlinkPropertyToAnimation](./scene_functions#unlinkpropertytoanimation)

***

### EdgeFilter

Enum of [core.Int](./core_types#int)

| Name   | Value |
| ------ | ----- |
| Clamp  | 0     |
| Extend | 1     |
| Repeat | 2     |
| Mirror | 3     |

Functions accepting this type or a list of this type as a parameter:

* [material.blurImage](./material_functions#blurimage)
* [material.getImageColorBilinear](./material_functions#getimagecolorbilinear)
* [material.rotateImage](./material_functions#rotateimage)
* [material.setSubImage](./material_functions#setsubimage)
* [material.stretchImage](./material_functions#stretchimage)
* [material.transformImage](./material_functions#transformimage)
* [material.translateImage](./material_functions#translateimage)

***

### Image

An Image is an entity which represents an image in the Image library.
Base class: [core.Entity](./core_types#entity)


**Frame:**
```mermaid
classDiagram
    class Image
    Entity <|-- Image
    Image : +core.Ident Id
    Image : +core.String Name
```

Functions accepting this type or a list of this type as a parameter:

* [algo.convertNormalMap](./algo_functions#convertnormalmap)
* [algo.fillNormalMap](./algo_functions#fillnormalmap)
* [algo.orientNormalMap](./algo_functions#orientnormalmap)
* [material.convertHeightMapToNormalMap](./material_functions#convertheightmaptonormalmap)
* [material.filterAO](./material_functions#filterao)
* [material.getImageAverageColor](./material_functions#getimageaveragecolor)
* [material.remapIndexMap](./material_functions#remapindexmap)
* [material.applyFactorOnImage](./material_functions#applyfactoronimage)
* [material.blurImage](./material_functions#blurimage)
* [material.clearImageRoI](./material_functions#clearimageroi)
* [material.convertFloat32To8BitsImage](./material_functions#convertfloat32to8bitsimage)
* [material.convertImage](./material_functions#convertimage)
* [material.convertImageToDefinition](./material_functions#convertimagetodefinition)
* [material.exportImage](./material_functions#exportimage)
* [material.extractImageChannels](./material_functions#extractimagechannels)
* [material.extractImageComponents](./material_functions#extractimagecomponents)
* [material.fillImageWithColor](./material_functions#fillimagewithcolor)
* [material.fillUnusedPixels](./material_functions#fillunusedpixels)
* [material.flipImageY](./material_functions#flipimagey)
* [material.getImageColorBilinear](./material_functions#getimagecolorbilinear)
* [material.getImageColorRange](./material_functions#getimagecolorrange)
* [material.getImageComponentType](./material_functions#getimagecomponenttype)
* [material.getImageDefinition](./material_functions#getimagedefinition)
* [material.getImageDefinitions](./material_functions#getimagedefinitions)
* [material.getImageLayout](./material_functions#getimagelayout)
* [material.getImagePixelColor](./material_functions#getimagepixelcolor)
* [material.getImagePixelInfo](./material_functions#getimagepixelinfo)
* [material.getImageRoI](./material_functions#getimageroi)
* [material.getImageSize](./material_functions#getimagesize)
* [material.getImagesSizes](./material_functions#getimagessizes)
* [material.getSubImage](./material_functions#getsubimage)
* [material.invertImageColor](./material_functions#invertimagecolor)
* [material.overrideImageFormat](./material_functions#overrideimageformat)
* [material.resizeImage](./material_functions#resizeimage)
* [material.rotateImage](./material_functions#rotateimage)
* [material.setImageRoI](./material_functions#setimageroi)
* [material.setSubImage](./material_functions#setsubimage)
* [material.stretchImage](./material_functions#stretchimage)
* [material.transformImage](./material_functions#transformimage)
* [material.translateImage](./material_functions#translateimage)
* [material.updateImageFromDefinition](./material_functions#updateimagefromdefinition)
* [material.updateImagesFromDefinitions](./material_functions#updateimagesfromdefinitions)
* [scene.mergeImages](./scene_functions#mergeimages)
* [core.cloneEntity](./core_functions#cloneentity)
* [core.deleteEntities](./core_functions#deleteentities)
* [core.entityExists](./core_functions#entityexists)
* [core.getEntityType](./core_functions#getentitytype)
* [core.getEntityTypeString](./core_functions#getentitytypestring)
* [core.addCustomProperties](./core_functions#addcustomproperties)
* [core.addCustomProperty](./core_functions#addcustomproperty)
* [core.getProperties](./core_functions#getproperties)
* [core.getProperty](./core_functions#getproperty)
* [core.getPropertyInfo](./core_functions#getpropertyinfo)
* [core.hasCustomProperty](./core_functions#hascustomproperty)
* [core.hasProperty](./core_functions#hasproperty)
* [core.listProperties](./core_functions#listproperties)
* [core.listPropertiesBatch](./core_functions#listpropertiesbatch)
* [core.removeCustomProperty](./core_functions#removecustomproperty)
* [core.setProperties](./core_functions#setproperties)
* [core.setProperty](./core_functions#setproperty)
* [core.supportCustomProperties](./core_functions#supportcustomproperties)
* [core.unsetProperty](./core_functions#unsetproperty)
* [scene.linkPropertyToAnimation](./scene_functions#linkpropertytoanimation)
* [scene.unlinkPropertyToAnimation](./scene_functions#unlinkpropertytoanimation)

***

### ImageChangeType

Enum of [core.Long](./core_types#long)

| Name     | Value |
| -------- | ----- |
| ADDED    | 0     |
| REMOVED  | 1     |
| CHANGED  | 2     |
| RESET    | 3     |
| REPLACED | 4     |

***

### ImageComponentType

Enum of [core.Int](./core_types#int)

| Name         | Value |
| ------------ | ----- |
| Undefined    | 0     |
| UInt8\_Norm  | 1     |
| UInt8\_Int   | 2     |
| SInt8\_Norm  | 3     |
| SInt8\_Int   | 4     |
| UInt16\_Norm | 5     |
| UInt16\_Int  | 6     |
| SInt16\_Norm | 7     |
| SInt16\_Int  | 8     |
| Float16      | 9     |
| UInt32\_Norm | 10    |
| UInt32\_Int  | 11    |
| SInt32\_Norm | 12    |
| SInt32\_Int  | 13    |
| Float32      | 14    |
| UInt64\_Norm | 15    |
| UInt64\_Int  | 16    |
| SInt64\_Norm | 17    |
| SInt64\_Int  | 18    |
| Float64      | 19    |

Functions accepting this type or a list of this type as a parameter:

* [material.convertImage](./material_functions#convertimage)
* [material.convertImageToDefinition](./material_functions#convertimagetodefinition)
* [material.createCheckerboardImage](./material_functions#createcheckerboardimage)
* [material.getImageComponentTypeName](./material_functions#getimagecomponenttypename)
* [material.getImageFormatName](./material_functions#getimageformatname)
* [material.getImagePixelInfoFromLayoutAndType](./material_functions#getimagepixelinfofromlayoutandtype)
* [material.overrideImageFormat](./material_functions#overrideimageformat)

***

### ImageDefinition

Fields

| Type   | Name               | Default     | Description |
| ------ | ------------------ | ----------- | ----------- |
| id     | Image              | 0           |             |
| name   | Core.String        |             |             |
| width  | Core.Int           | 0           |             |
| height | Core.Int           | 0           |             |
| layout | ImageLayout        | RGBA        |             |
| type   | ImageComponentType | UInt8\_Norm |             |
| data   | ByteList           |             |             |

Functions accepting this type or a list of this type as a parameter:

* [material.createImageFromDefinition](./material_functions#createimagefromdefinition)
* [material.createImagesFromDefinitions](./material_functions#createimagesfromdefinitions)
* [material.getImagePixelInfoFromDefinition](./material_functions#getimagepixelinfofromdefinition)
* [material.updateImageFromDefinition](./material_functions#updateimagefromdefinition)
* [material.updateImagesFromDefinitions](./material_functions#updateimagesfromdefinitions)

***

### ImageDefinitionList

List of [material.ImageDefinition](./material_types#imagedefinition)

Functions accepting this type or a list of this type as a parameter:

* [material.createImagesFromDefinitions](./material_functions#createimagesfromdefinitions)
* [material.updateImagesFromDefinitions](./material_functions#updateimagesfromdefinitions)

***

### ImageLayout

Enum of [core.Int](./core_types#int)

| Name      | Value |
| --------- | ----- |
| Undefined | 0     |
| R         | 1     |
| G         | 2     |
| B         | 3     |
| A         | 4     |
| RG        | 5     |
| RGB       | 6     |
| RGBA      | 7     |
| BGR       | 8     |
| BGRA      | 9     |
| ABGR      | 10    |
| Lum       | 11    |
| LumA      | 12    |

Functions accepting this type or a list of this type as a parameter:

* [material.convertImage](./material_functions#convertimage)
* [material.convertImageToDefinition](./material_functions#convertimagetodefinition)
* [material.createCheckerboardImage](./material_functions#createcheckerboardimage)
* [material.extractImageComponents](./material_functions#extractimagecomponents)
* [material.getImageFormatName](./material_functions#getimageformatname)
* [material.getImagePixelInfoFromLayoutAndType](./material_functions#getimagepixelinfofromlayoutandtype)
* [material.overrideImageFormat](./material_functions#overrideimageformat)

***

### ImageList

List of [material.Image](./material_types#image)

Functions accepting this type or a list of this type as a parameter:

* [material.filterAO](./material_functions#filterao)
* [material.remapIndexMap](./material_functions#remapindexmap)
* [material.getImageDefinitions](./material_functions#getimagedefinitions)
* [material.getImagesSizes](./material_functions#getimagessizes)
* [material.updateImagesFromDefinitions](./material_functions#updateimagesfromdefinitions)
* [scene.mergeImages](./scene_functions#mergeimages)

***

### ImpostorMaterialInfos

Fields

| Type         | Name           | Default | Description |
| ------------ | -------------- | ------- | ----------- |
| name         | Core.String    |         |             |
| albedo       | ColorOrTexture |         |             |
| normal       | ColorOrTexture |         |             |
| roughness    | CoeffOrTexture |         |             |
| ao           | CoeffOrTexture |         |             |
| depth        | CoeffOrTexture |         |             |
| nbFrames     | Core.Int       | 0       |             |
| fullOcta     | Core.Boolean   | 1       |             |
| octaDiameter | Core.Double    | 1.0     |             |
| linearSteps  | Core.Int       | 30      |             |
| binarySteps  | Core.Int       | 1       |             |

***

### Material

The Material is an Entity that contains visual definition that can be applied to the Components of the scene.
Base class: [core.Entity](./core_types#entity)


**Frame:**
```mermaid
classDiagram
    class Material
    Entity <|-- Material
    Material : +core.String Name
    Material : +core.Ident Id
    Material : +core.Boolean DepthTestEnabled
    Material : +ENUM BackFaceMode
    Material : +core.Boolean R
    Material : +core.Boolean G
    Material : +core.Boolean B
    Material : +core.Boolean A
```

Functions accepting this type or a list of this type as a parameter:

* [algo.filletMesh](./algo_functions#filletmesh)
* [algo.removeHoles](./algo_functions#removeholes)
* [algo.remeshSurfacicHoles](./algo_functions#remeshsurfacicholes)
* [cad.setFaceMaterial](./cad_functions#setfacematerial)
* [cad.setEdgeMaterial](./cad_functions#setedgematerial)
* [material.areOpaques](./material_functions#areopaques)
* [material.copyMaterial](./material_functions#copymaterial)
* [material.getColorMaterialInfos](./material_functions#getcolormaterialinfos)
* [material.getCustomMaterialPattern](./material_functions#getcustommaterialpattern)
* [material.getImpostorMaterialInfos](./material_functions#getimpostormaterialinfos)
* [material.getMaterialDefinition](./material_functions#getmaterialdefinition)
* [material.getMaterialDefinitions](./material_functions#getmaterialdefinitions)
* [material.getMaterialMainColor](./material_functions#getmaterialmaincolor)
* [material.getMaterialPattern](./material_functions#getmaterialpattern)
* [material.getMaterialPatternType](./material_functions#getmaterialpatterntype)
* [material.getPBRMaterialInfos](./material_functions#getpbrmaterialinfos)
* [material.getStandardMaterialInfos](./material_functions#getstandardmaterialinfos)
* [material.getUnlitTextureMaterialInfos](./material_functions#getunlittexturematerialinfos)
* [material.isOpaque](./material_functions#isopaque)
* [material.makeMaterialNamesUnique](./material_functions#makematerialnamesunique)
* [material.setCoeffOrTextureProperty](./material_functions#setcoeffortextureproperty)
* [material.setColorAlphaProperty](./material_functions#setcoloralphaproperty)
* [material.setColorOrTextureProperty](./material_functions#setcolorortextureproperty)
* [material.setMaterialMainColor](./material_functions#setmaterialmaincolor)
* [material.setMaterialPattern](./material_functions#setmaterialpattern)
* [material.setPBRMaterialInfos](./material_functions#setpbrmaterialinfos)
* [material.getAllImages](./material_functions#getallimages)
* [material.getMaterialUserData](./material_functions#getmaterialuserdata)
* [material.getMultipleMaterialUserData](./material_functions#getmultiplematerialuserdata)
* [material.hasMaterialUserData](./material_functions#hasmaterialuserdata)
* [material.hasMultipleMaterialUserData](./material_functions#hasmultiplematerialuserdata)
* [material.setMaterialUserData](./material_functions#setmaterialuserdata)
* [material.setMultipleMaterialUserData](./material_functions#setmultiplematerialuserdata)
* [material.unsetMaterialUserData](./material_functions#unsetmaterialuserdata)
* [material.unsetMultipleMaterialUserData](./material_functions#unsetmultiplematerialuserdata)
* [scene.convertMaterialsToColor](./scene_functions#convertmaterialstocolor)
* [scene.convertMaterialsToPBR](./scene_functions#convertmaterialstopbr)
* [scene.mergeMaterials](./scene_functions#mergematerials)
* [scene.replaceMaterial](./scene_functions#replacematerial)
* [scene.setOccurrenceMaterial](./scene_functions#setoccurrencematerial)
* [scene.findOccurrencesByMaterial](./scene_functions#findoccurrencesbymaterial)
* [scene.findPartOccurrencesByActiveMaterial](./scene_functions#findpartoccurrencesbyactivematerial)
* [scene.findPartOccurrencesByVisibleMaterial](./scene_functions#findpartoccurrencesbyvisiblematerial)
* [scene.setSubpartMaterial](./scene_functions#setsubpartmaterial)
* [scene.setSubpartMaterials](./scene_functions#setsubpartmaterials)
* [scene.addMeshToAnnotation](./scene_functions#addmeshtoannotation)
* [core.cloneEntity](./core_functions#cloneentity)
* [core.deleteEntities](./core_functions#deleteentities)
* [core.entityExists](./core_functions#entityexists)
* [core.getEntityType](./core_functions#getentitytype)
* [core.getEntityTypeString](./core_functions#getentitytypestring)
* [core.addCustomProperties](./core_functions#addcustomproperties)
* [core.addCustomProperty](./core_functions#addcustomproperty)
* [core.getProperties](./core_functions#getproperties)
* [core.getProperty](./core_functions#getproperty)
* [core.getPropertyInfo](./core_functions#getpropertyinfo)
* [core.hasCustomProperty](./core_functions#hascustomproperty)
* [core.hasProperty](./core_functions#hasproperty)
* [core.listProperties](./core_functions#listproperties)
* [core.listPropertiesBatch](./core_functions#listpropertiesbatch)
* [core.removeCustomProperty](./core_functions#removecustomproperty)
* [core.setProperties](./core_functions#setproperties)
* [core.setProperty](./core_functions#setproperty)
* [core.supportCustomProperties](./core_functions#supportcustomproperties)
* [core.unsetProperty](./core_functions#unsetproperty)
* [scene.linkPropertyToAnimation](./scene_functions#linkpropertytoanimation)
* [scene.unlinkPropertyToAnimation](./scene_functions#unlinkpropertytoanimation)

***

### MaterialChangeType

Enum of [core.Long](./core_types#long)

| Name             | Value |
| ---------------- | ----- |
| CHANGED          | 0     |
| PATTERN\_CHANGED | 1     |
| RELOAD           | 2     |
| DESTROYED        | 3     |
| ICON\_CHANGED    | 4     |
| ADDED            | 5     |
| REMOVED          | 6     |

***

### MaterialDefinition

Fields

| Type      | Name           | Default | Description |
| --------- | -------------- | ------- | ----------- |
| name      | Core.String    |         |             |
| id        | Material       | 0       |             |
| albedo    | ColorOrTexture |         |             |
| normal    | ColorOrTexture |         |             |
| metallic  | CoeffOrTexture |         |             |
| roughness | CoeffOrTexture |         |             |
| ao        | CoeffOrTexture |         |             |
| opacity   | CoeffOrTexture |         |             |
| emissive  | ColorOrTexture |         |             |

Functions accepting this type or a list of this type as a parameter:

* [material.createMaterialFromDefinition](./material_functions#creatematerialfromdefinition)
* [material.createMaterialsFromDefinitions](./material_functions#creatematerialsfromdefinitions)

***

### MaterialDefinitionList

List of [material.MaterialDefinition](./material_types#materialdefinition)

Functions accepting this type or a list of this type as a parameter:

* [material.createMaterialsFromDefinitions](./material_functions#creatematerialsfromdefinitions)

***

### MaterialFromMapsReturn

Fields

| Type                 | Name     | Default | Description                        |
| -------------------- | -------- | ------- | ---------------------------------- |
| importedTextureCount | Core.Int | 0       | Number of newly imported textures. |
| createdMaterialCount | Core.Int | 0       | Number of newly created materials. |
| updatedMaterialCount | Core.Int | 0       |                                    |

***

### MaterialList

List of [material.Material](./material_types#material)

Functions accepting this type or a list of this type as a parameter:

* [material.areOpaques](./material_functions#areopaques)
* [material.getMaterialDefinitions](./material_functions#getmaterialdefinitions)
* [material.makeMaterialNamesUnique](./material_functions#makematerialnamesunique)
* [material.getAllImages](./material_functions#getallimages)
* [material.getMultipleMaterialUserData](./material_functions#getmultiplematerialuserdata)
* [material.hasMultipleMaterialUserData](./material_functions#hasmultiplematerialuserdata)
* [material.setMultipleMaterialUserData](./material_functions#setmultiplematerialuserdata)
* [material.unsetMultipleMaterialUserData](./material_functions#unsetmultiplematerialuserdata)
* [scene.convertMaterialsToColor](./scene_functions#convertmaterialstocolor)
* [scene.convertMaterialsToPBR](./scene_functions#convertmaterialstopbr)
* [scene.mergeMaterials](./scene_functions#mergematerials)
* [scene.setSubpartMaterials](./scene_functions#setsubpartmaterials)
* [scene.setSubpartVariantMaterialsList](./scene_functions#setsubpartvariantmaterialslist)

***

### MaterialListList

List of [material.MaterialList](./material_types#materiallist)

Functions accepting this type or a list of this type as a parameter:

* [scene.setSubpartVariantMaterialsList](./scene_functions#setsubpartvariantmaterialslist)

***

### MaterialPatternType

Enum of [core.Int](./core_types#int)

| Name           | Value |
| -------------- | ----- |
| CUSTOM         | 0     |
| COLOR          | 1     |
| STANDARD       | 2     |
| UNLIT\_TEXTURE | 3     |
| PBR            | 4     |
| IMPOSTOR       | 5     |
| LINE           | 6     |

***

### MaterialUserData

Identifier of materials userdata.
Base class: [core.Ident](./core_types#ident)


**Frame:**
```mermaid
classDiagram
    class MaterialUserData
    Ident <|-- MaterialUserData
```

Functions accepting this type or a list of this type as a parameter:

* [material.getMaterialUserData](./material_functions#getmaterialuserdata)
* [material.getMultipleMaterialUserData](./material_functions#getmultiplematerialuserdata)
* [material.hasMaterialUserData](./material_functions#hasmaterialuserdata)
* [material.hasMultipleMaterialUserData](./material_functions#hasmultiplematerialuserdata)
* [material.setMaterialUserData](./material_functions#setmaterialuserdata)
* [material.setMultipleMaterialUserData](./material_functions#setmultiplematerialuserdata)
* [material.unsetMaterialUserData](./material_functions#unsetmaterialuserdata)
* [material.unsetMultipleMaterialUserData](./material_functions#unsetmultiplematerialuserdata)
* [material.unsubscribeFromMaterialUserData](./material_functions#unsubscribefrommaterialuserdata)

***

### PBRMaterialInfos

Fields

| Type      | Name           | Default | Description |
| --------- | -------------- | ------- | ----------- |
| name      | Core.String    |         |             |
| albedo    | ColorOrTexture |         |             |
| normal    | ColorOrTexture |         |             |
| metallic  | CoeffOrTexture |         |             |
| roughness | CoeffOrTexture |         |             |
| ao        | CoeffOrTexture |         |             |
| opacity   | CoeffOrTexture |         |             |

Functions accepting this type or a list of this type as a parameter:

* [material.setPBRMaterialInfos](./material_functions#setpbrmaterialinfos)

***

### PixelInfo

Fields

| Type              | Name               | Default   | Description |
| ----------------- | ------------------ | --------- | ----------- |
| layout            | ImageLayout        | Undefined |             |
| type              | ImageComponentType | Undefined |             |
| componentCount    | Core.Int           | 0         |             |
| bitsPerComponent  | Core.Int           | 0         |             |
| bytesPerComponent | Core.Int           | 0         |             |
| bytesPerPixel     | Core.Int           | 0         |             |
| isFloat           | Boolean            | False     |             |
| isSigned          | Boolean            | False     |             |
| isNormalized      | Boolean            | False     |             |

***

### ResizeFilterMethod

Enum of [core.Int](./core_types#int)

| Name         | Value |
| ------------ | ----- |
| DEFAULT      | 0     |
| BOX          | 1     |
| TRIANGLE     | 2     |
| CUBICBSPLINE | 3     |
| CATMULLROM   | 4     |
| MITCHELL     | 5     |

Functions accepting this type or a list of this type as a parameter:

* [material.resizeImage](./material_functions#resizeimage)

***

### RoI

Fields

| Type | Name     | Default | Description |
| ---- | -------- | ------- | ----------- |
| x    | Core.Int | 0       |             |
| y    | Core.Int | 0       |             |
| w    | Core.Int | 0       |             |
| h    | Core.Int | 0       |             |

***

### ShaderUniformType

The possible types of shader uniform parameters.
Enum of [core.Long](./core_types#long)

| Name           | Value |
| -------------- | ----- |
| INTEGER        | 2     |
| BOOLEAN        | 9     |
| REAL           | 11    |
| COEFF          | 13    |
| POINT3         | 23    |
| POINT2         | 22    |
| COLOR          | 15    |
| COLOR\_ALPHA   | 16    |
| TEXTURE        | 34    |
| COLORORTEXTURE | 35    |
| COEFFORTEXTURE | 36    |

Functions accepting this type or a list of this type as a parameter:

* [material.addUniformProperty](./material_functions#adduniformproperty)

***

### StandardMaterialInfos

Fields

| Type         | Name           | Default | Description |
| ------------ | -------------- | ------- | ----------- |
| name         | Core.String    |         |             |
| diffuse      | ColorOrTexture |         |             |
| specular     | ColorOrTexture |         |             |
| ambient      | ColorOrTexture |         |             |
| emissive     | ColorOrTexture |         |             |
| shininess    | Coeff          | 0.0     |             |
| transparency | Coeff          | 0.0     |             |

***

### Texture

Fields

| Type    | Name           | Default    | Description |
| ------- | -------------- | ---------- | ----------- |
| image   | Image          | 0          |             |
| channel | Core.Int       | 0          |             |
| offset  | Point2         |            |             |
| tilling | Point2         |            |             |
| sampler | TextureSampler | \[0,0,0,0] |             |

***

### TextureSampler

Fields

| Type      | Name     | Default | Description |
| --------- | -------- | ------- | ----------- |
| magFilter | Core.Int | 0       |             |
| minFilter | Core.Int | 0       |             |
| wrapS     | Core.Int | 0       |             |
| wrapT     | Core.Int | 0       |             |

***

### UnlitTextureMaterialInfos

Fields

| Type    | Name        | Default | Description |
| ------- | ----------- | ------- | ----------- |
| name    | Core.String |         |             |
| texture | Texture     |         |             |
