From a14941d74063bb88147148e7d925b55726ba3307 Mon Sep 17 00:00:00 2001 From: FMS-Cat Date: Mon, 29 Mar 2021 23:10:05 +0900 Subject: [PATCH] aesthetics: no shadow for condition --- src/entities/Condition.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/entities/Condition.ts b/src/entities/Condition.ts index 98ddf6c..08c7c65 100644 --- a/src/entities/Condition.ts +++ b/src/entities/Condition.ts @@ -120,16 +120,7 @@ export class Condition extends Entity { }, ); - const depth = new Material( - conditionVert, - conditionFrag, - { - defines: [ 'SHADOW 1' ], - initOptions: { geometry, target: dummyRenderTarget }, - }, - ); - - const materials = { cubemap, deferred, depth }; + const materials = { cubemap, deferred }; objectValuesMap( materials, ( material ) => { material.addUniformTexture( 'samplerSvg', texture ); @@ -157,7 +148,6 @@ export class Condition extends Entity { () => { cubemap.replaceShader( conditionVert, conditionFrag ); deferred.replaceShader( conditionVert, conditionFrag ); - depth.replaceShader( conditionVert, conditionFrag ); }, ); }