Since version 4.0, EasyTextures supports PBR materials. To learn what PBR is in Second Life™, see PBR Materials on the Second Life wiki.

Apply a material

Use pbr with the material's UUID. This set applies a material to face 3 of the prim stool:

-blueSet
stool;pbr;3;e8d6f6cf-91c1-af76-f272-a50f107cb5f3

Change a material's maps

Each map of a material has its own instruction:

Instruction Map
pbr_basecolor Base color
pbr_normal Normal
pbr_metallic Metallic and roughness
pbr_emissive Emissive

These two sets change the base color, normal and metallic maps of face 6 of the prim stool:

-redSet
stool;pbr_basecolor;6;fbc6551e-05ea-2aad-f643-b82612455b39
stool;pbr_normal;6;cebf98c1-ce8a-a024-baff-86f1e748f2c6
stool;pbr_metallic;6;b63cd68e-3ef2-0a0a-db52-c21d46bf27df

-greenSet
stool;pbr_basecolor;6;2f25ad79-7cde-a0e6-6429-662884ddb3d2
stool;pbr_normal;6;296ebc06-7bc7-7309-63e3-74eae09686f5
stool;pbr_metallic;6;95f969e0-dfca-a2ee-74a1-15b8efd7e661

Metallic and roughness factors

After the map's UUID, the values follow the order of PRIM_GLTF_METALLIC_ROUGHNESS: repeats, offsets, rotation, metallic factor, then roughness factor. Write NULL to keep a default.

// Default values: [ PRIM_GLTF_METALLIC_ROUGHNESS, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians, float metallic_factor, float roughness_factor ]

// Change only the metallic_factor
stool;pbr_metallic;6;95f969e0-dfca-a2ee-74a1-15b8efd7e661,NULL,NULL,NULL,0.1

// Change only the roughness_factor
stool;pbr_metallic;6;95f969e0-dfca-a2ee-74a1-15b8efd7e661,NULL,NULL,NULL,NULL,0.5

// Or change both: 0.1 is the metallic_factor, 0.5 the roughness_factor
stool;pbr_metallic;6;95f969e0-dfca-a2ee-74a1-15b8efd7e661,NULL,NULL,NULL,0.1,0.5

Emissive

This sets the emissive value of face 6 to 0.8:

stool;pbr_emissive;6;95f969e0-dfca-a2ee-74a1-15b8efd7e661,NULL,NULL,NULL,0.8

Every value each instruction takes, and its default, is on the Second Life wiki, from PRIM_GLTF_BASE_COLOR onwards.