Skip to content

Commit

Permalink
Add rendering test for KHR_materials_specular
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeshurun Hembd committed May 16, 2024
1 parent d8d469a commit 74d0d28
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/engine/Specs/Scene/Model/ModelSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ describe(
"./Data/Models/glTF-2.0/BoxEmissive/glTF/BoxEmissive.gltf";
const boomBoxUrl =
"./Data/Models/glTF-2.0/BoomBox/glTF-pbrSpecularGlossiness/BoomBox.gltf";
const boxSpecularUrl =
"./Data/Models/glTF-2.0/BoxSpecular/glTF/BoxSpecular.gltf";
const riggedFigureUrl =
"./Data/Models/glTF-2.0/RiggedFigureTest/glTF/RiggedFigureTest.gltf";
const dracoCesiumManUrl =
Expand Down Expand Up @@ -706,6 +708,19 @@ describe(
verifyRender(model, true);
});

it("renders model with the KHR_materials_specular extension", async function () {
const resource = Resource.createIfNeeded(boxSpecularUrl);
const gltf = await resource.fetchJson();
const model = await loadAndZoomToModelAsync(
{
gltf: gltf,
basePath: boxSpecularUrl,
},
scene
);
verifyRender(model, true);
});

it("transforms property textures with KHR_texture_transform", async function () {
const resource = Resource.createIfNeeded(
propertyTextureWithTextureTransformUrl
Expand Down

0 comments on commit 74d0d28

Please sign in to comment.