From 9ccab0df1499e8d029a49f8835bf2db70b2f7a8e Mon Sep 17 00:00:00 2001 From: Cosmic Linden Date: Mon, 1 Jul 2024 16:17:06 -0700 Subject: secondlife/viewer#1847: Add test plan for normal textures on PBR materials --- doc/testplans/pbr_materials.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 doc/testplans/pbr_materials.md (limited to 'doc/testplans') diff --git a/doc/testplans/pbr_materials.md b/doc/testplans/pbr_materials.md new file mode 100644 index 0000000000..f91e5fd454 --- /dev/null +++ b/doc/testplans/pbr_materials.md @@ -0,0 +1,12 @@ +# PBR Materials + +## KHR Texture Transforms + +Texture repeats for PBR materials on prims are based on the [KHR\_texture\_transform](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_texture_transform) spec, and thus should be expected to behave according to the spec. + +PBR materials should have approximately correct lighting based on the normal texture: + +- With default texture transforms, assuming the prim or model has correct normals and tangents +- With a texture transform applied, especially rotation or negative scale +- With a texture animation applied via `llSetTextureAnim`, especially a rotation animation + - Note: Texture animations are not guaranteed to loop when a PBR texture transform is applied -- cgit v1.2.3 From b7ad221f3783ae953a1e0b4eb227950061c48b13 Mon Sep 17 00:00:00 2001 From: Cosmic Linden Date: Tue, 2 Jul 2024 14:17:40 -0700 Subject: secondlife/viewer#1847: Update test plan: Enumerate support for KHR_texture_transform on prims --- doc/testplans/pbr_materials.md | 2 +- doc/testplans/pbr_terrain_appearance.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/testplans') diff --git a/doc/testplans/pbr_materials.md b/doc/testplans/pbr_materials.md index f91e5fd454..1ef7945b94 100644 --- a/doc/testplans/pbr_materials.md +++ b/doc/testplans/pbr_materials.md @@ -2,7 +2,7 @@ ## KHR Texture Transforms -Texture repeats for PBR materials on prims are based on the [KHR\_texture\_transform](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_texture_transform) spec, and thus should be expected to behave according to the spec. +Texture repeats for PBR materials on prims are based on the [KHR\_texture\_transform](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_texture_transform) spec, and thus should be expected to behave according to the spec. We currently suport offset, rotation, and scale from the spec. texCoord is not currently supported. PBR materials should have approximately correct lighting based on the normal texture: diff --git a/doc/testplans/pbr_terrain_appearance.md b/doc/testplans/pbr_terrain_appearance.md index 770e39204e..eab5b8bf44 100644 --- a/doc/testplans/pbr_terrain_appearance.md +++ b/doc/testplans/pbr_terrain_appearance.md @@ -39,7 +39,7 @@ PBR terrain does not support materials with alpha blend or double-sided. In addi ## PBR Terrain Texture Transforms -Like PBR materials on prims, PBR terrain repeats are based on the [KHR\_texture\_transform](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_texture_transform) spec, and thus should be expected to behave the same way. +Like PBR materials on prims, PBR terrain repeats are based on the [KHR\_texture\_transform](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_texture_transform) spec, and thus should be expected to behave the same way. We currently suport offset, rotation, and scale from the spec. texCoord is not currently supported. The southwest corner of a region, at z=0, is the UV origin for all texture coordinates of the whole region. Unless an offset is also applied, scale and rotation of the terrain texture transforms are relative to that point. -- cgit v1.2.3