Skip to content

editorGlobalsITextureDefinition

Interface: ITextureDefinition

Hierarchy

  • ITextureDefinition

Index

Properties

Properties

colorFallback

colorFallback: number

Defined in src/model/visualization/materials/materialDefinitions/MaterialDefinition.ts:13

basic color that is used until the textures in textureUrls are loaded


Optional colorizeColor

colorizeColor? : number

Defined in src/model/visualization/materials/materialDefinitions/MaterialDefinition.ts:15

the color that the texture should be colorized with (used for colored materials like colored plywood or acrylic)


Optional colorizeEngravingFalloff

colorizeEngravingFalloff? : number

Defined in src/model/visualization/materials/materialDefinitions/MaterialDefinition.ts:22

how fast the color should disappear with increasing engraving alpha. 1 / engravingFalloff is the engraving alpha value for which no color is visible anymore


Optional colorizeStrength

colorizeStrength? : number

Defined in src/model/visualization/materials/materialDefinitions/MaterialDefinition.ts:17

how strong the colorization should be


Optional size

size? : object

Defined in src/model/visualization/materials/materialDefinitions/MaterialDefinition.ts:11

native texture image size in mm. Only required, if there textureUrls is set.

Type declaration:

  • height: number

  • width: number


Optional textureUrls

textureUrls? : string[]

Defined in src/model/visualization/materials/materialDefinitions/MaterialDefinition.ts:9

The values may be strings or arrays. If it is a single entry, the texture will simply be used as-is. If there are two urls for one texture key, they will be used with mix-mapping in order to improve the visual quality.

see http://www.neilblevins.com/cg_education/tiling_trick/tiling_trick.htm