浏览代码

Merge pull request #5876 from sebavan/master

Fix Inspector Tone Mapping
sebavan 6 年之前
父节点
当前提交
c5f1a8f296
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      src/PostProcesses/imageProcessingPostProcess.ts

+ 13 - 0
src/PostProcesses/imageProcessingPostProcess.ts

@@ -177,6 +177,19 @@ export class ImageProcessingPostProcess extends PostProcess {
     }
 
     /**
+     * Gets the type of tone mapping effect.
+     */
+    public get toneMappingType(): number {
+        return this._imageProcessingConfiguration.toneMappingType;
+    }
+    /**
+     * Sets the type of tone mapping effect.
+     */
+    public set toneMappingType(value: number) {
+        this._imageProcessingConfiguration.toneMappingType = value;
+    }
+
+    /**
      * Gets contrast used in the effect.
      */
     public get contrast(): number {