Skip to main content
Skip to main content

setMaterialCustomMapFromFile

setMaterialCustomMapFromFile

Description

Definition

setMaterialCustomMapFromFile(entityId materialId, string name, string filename, boolean? textueWrap, boolean? isSRGB, boolean? sharedEdit)

Arguments

entityIdmaterialId
stringname
stringfilename
boolean?textueWrap[optional, default defined by custom shader; ignored anyway]
boolean?isSRGB[optional, default defined by custom shader]
boolean?sharedEdit[optional, default=true]

Return Values

entityIdnewMaterialIdmaterial id of new material (same as materialId with shared edit mode)