Browse Source

update default values for coc

Trevor Baron 7 năm trước cách đây
mục cha
commit
c4b2f90276
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      src/PostProcess/babylon.circleOfConfusionPostProcess.ts

+ 2 - 3
src/PostProcess/babylon.circleOfConfusionPostProcess.ts

@@ -2,9 +2,8 @@ module BABYLON {
     export class CircleOfConfusionPostProcess extends PostProcess {
         lensSize = 50 // in scene units/1000 (eg. millimeter)
         fStop = 1.4; // Aperture = lensSize/fStop
-        focusDistance = 15000; // in scene units/1000 (eg. millimeter)
-        focalLength = 500; // in scene units/1000 (eg. millimeter)
-
+        focusDistance = 2000; // in scene units/1000 (eg. millimeter)
+        focalLength = 50; // in scene units/1000 (eg. millimeter)
         
         constructor(name: string, depthTexture: RenderTargetTexture, options: number | PostProcessOptions, camera: Camera, samplingMode?: number, engine?: Engine, reusable?: boolean, textureType: number = Engine.TEXTURETYPE_UNSIGNED_INT) {
             super(name, "circleOfConfusion", ["cameraMinMaxZ", "focusDistance", "cocPrecalculation"], ["depthSampler"], options, camera, samplingMode, engine, reusable, null, textureType);