TexturePack
Dress a part beyond its colour: texture, bumps, shine, metal, glow, glass and see-through, shared by every part that points at the same pack.
Each channel, Texture, Normal, Roughness, Metalness, Emission, Transparency, Transmission and IOR, is an image or a typed value. Images follow a MeshPart's UVs; plain Parts use the values, and a Material tiles over both. The first edit of a part's Surface rows in Properties gives it its own pack; part.TexturePack = pack shares one. Wire a picture or a surface graph into a channel in the Nodes window; a surface graph looks the same in Solid and Rendered.
Example
local video = Root.Bench
local scene = video.Scene
local packs = Instance.new("Folder", Root)
local glow = Instance.new("TexturePack", packs)
glow.Name = "Glow"
glow.EmissionValue = 400
local lamp = Instance.new("Part", scene)
lamp.Name = "Lamp"
lamp.Size = Vector3.new(0.3, 0.3, 0.3)
lamp.CFrame = CFrame.new(-4, 1.5, 3)
lamp.Color = Color3.new(1, 0.9, 0.7)
lamp.TexturePack = glow
local shiny = Instance.new("TexturePack", packs)
shiny.Name = "Shiny"
shiny.MetalnessValue = 1
shiny.RoughnessValue = 0.15Properties
Surface
| Name | Type | Default | Description |
|---|---|---|---|
| EmissionMap | ImageContent | 0 0 to 1000 | Emission strength, times the surface colour: an image or a value. |
| IORMap | ImageContent | 1.45 1 to 3 | The IOR channel: a typed value, or an image whose red 0 to 1 covers IOR 1 to 3. |
| Material | Material | A Material applied to the parts that use this pack. | |
| MetalnessMap | ImageContent | 0 0 to 1 | The Metalness channel: a typed number, or an image read through its red channel where there are mesh UVs. |
| NormalMap | ImageContent | 0.5, 0.5, 1 | The surface normal channel: an image or a typed value, where 0.5, 0.5, 1 is flat. |
| RoughnessMap | ImageContent | 0.5 0 to 1 | The roughness image, read from its red channel along a MeshPart's UVs; RoughnessValue is used where there is none. |
| Texture | ImageContent | 1, 1, 1 | An image, or a typed colour that acts exactly like a flat image of that colour. |
| TransmissionMap | ImageContent | 0 0 to 1 | The Transmission channel: a typed number, or an image read through its red channel where there are mesh UVs. |
| TransparencyMap | ImageContent | 0 0 to 1 | Makes the part see-through: a typed value, or an image that is see-through where it is white. |
Scripts
| EmissionValue | number | scripts only | The typed emission strength, times the surface colour, used where there is no Emission image. |
| IORValue | number | scripts only | The typed IOR, used where there is no IOR image and always on plain Parts. |
| MetalnessValue | number | scripts only | The typed metalness, used where there is no Metalness image and always on plain Parts. |
| NormalValue | Vector3 | scripts only | The typed normal: it tilts MeshParts through their tangents and does nothing on plain Parts. |
| RoughnessValue | number | scripts only | The roughness used where there is no image, and on plain Parts. |
| TextureValue | Color3 | scripts only | The typed colour used where there is no Texture image; it acts like a flat image of that colour. |
| TransmissionValue | number | scripts only | The typed transmission, used where there is no Transmission image and always on plain Parts. |
| TransparencyValue | number | scripts only | The pack's typed transparency; a part's old Transparency property forwards to it. |
Deprecated 5
| Name | Type | Instead | Description |
|---|---|---|---|
| Emission | number | use EmissionValue | Old name for EmissionValue; it still reads and writes that value. |
| IOR | number | use IORValue | Old name for IORValue; it still reads and writes that value. |
| Metallic | number | use MetalnessValue | Old name for MetalnessValue; it still reads and writes that value. |
| Roughness | number | use RoughnessValue | Old name for RoughnessValue; it still reads and writes that value. |
| Transmission | number | use TransmissionValue | Old name for TransmissionValue; it still reads and writes that value. |
