Browse Source

Revert the changes back

Popov72 5 năm trước cách đây
mục cha
commit
72a5985548
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/Materials/effectRenderer.ts

+ 2 - 1
src/Materials/effectRenderer.ts

@@ -265,10 +265,11 @@ export class EffectWrapper {
                 creationOptions.onCompiled
                 creationOptions.onCompiled
             );
             );
         } else {
         } else {
-            this.effect = creationOptions.engine.createEffect(effectCreationOptions,
+            this.effect = new Effect(effectCreationOptions,
                 creationOptions.attributeNames || ["position"],
                 creationOptions.attributeNames || ["position"],
                 uniformNames,
                 uniformNames,
                 creationOptions.samplerNames,
                 creationOptions.samplerNames,
+                creationOptions.engine,
                 defines,
                 defines,
                 undefined,
                 undefined,
                 creationOptions.onCompiled,
                 creationOptions.onCompiled,