Sfoglia il codice sorgente

set the samples correctly

Raanan Weber 5 anni fa
parent
commit
c514af81e2
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/Materials/Textures/MultiviewRenderTarget.ts

+ 1 - 0
src/Materials/Textures/MultiviewRenderTarget.ts

@@ -17,6 +17,7 @@ export class MultiviewRenderTarget extends RenderTargetTexture {
         var internalTexture = scene.getEngine().createMultiviewRenderTargetTexture(this.getRenderWidth(), this.getRenderHeight());
         internalTexture.isMultiview = true;
         this._texture = internalTexture;
+        this.samples = this._engine.getCaps().maxSamples || this.samples;
     }
 
     /**