From 0a22a909892e8585b8e9ea7838ddf5322fdcaf5a Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Melucci Date: Thu, 17 Oct 2024 21:10:27 -0300 Subject: [PATCH] Fixed Material test --- test/ecs/components/Material.spec.ts | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/test/ecs/components/Material.spec.ts b/test/ecs/components/Material.spec.ts index a66398250..a5f9c8e68 100644 --- a/test/ecs/components/Material.spec.ts +++ b/test/ecs/components/Material.spec.ts @@ -48,16 +48,7 @@ describe('Generated Material ProtoBuf', () => { } } }, - alphaTexture: { - tex: { - $case: 'texture', - texture: { - filterMode: undefined, - wrapMode: undefined, - src: 'not-casla' - } - } - }, + alphaTexture: undefined, castShadows: true, metallic: 1, roughness: 1, @@ -79,16 +70,7 @@ describe('Generated Material ProtoBuf', () => { createPbrMaterial({ albedoColor: { r: 0, g: 1, b: 1, a: 1 }, alphaTest: 1, - alphaTexture: { - tex: { - $case: 'texture', - texture: { - wrapMode: TextureWrapMode.TWM_CLAMP, - filterMode: TextureFilterMode.TFM_BILINEAR, - src: 'not-casla' - } - } - }, + alphaTexture: undefined, bumpTexture: { tex: { $case: 'texture', @@ -136,6 +118,7 @@ describe('Generated Material ProtoBuf', () => { createUnlitMaterial({ castShadows: true, diffuseColor: { r: 0, g: 1, b: 1, a: 1 }, + alphaTexture: undefined, alphaTest: undefined, texture: undefined })