ソースを参照

modify validation output to match updated bloom

Trevor Baron 7 年 前
コミット
74944af6f2

+ 4 - 4
src/PostProcess/RenderPipeline/Pipelines/babylon.defaultRenderingPipeline.ts

@@ -9,7 +9,7 @@
         /**
 		 * ID of the sharpen post process,
 		 */
-        readonly SharpenPostProcessId: string = "SharpenPostProcessEffect";
+        private readonly SharpenPostProcessId: string = "SharpenPostProcessEffect";
         /**
 		 * ID of the image processing post process;
 		 */
@@ -21,11 +21,11 @@
         /**
 		 * ID of the chromatic aberration post process,
 		 */
-        readonly ChromaticAberrationPostProcessId: string = "ChromaticAberrationPostProcessEffect";
+        private readonly ChromaticAberrationPostProcessId: string = "ChromaticAberrationPostProcessEffect";
         /**
-		 * ID of the grain post process,
+		 * ID of the grain post process
 		 */
-        readonly GrainPostProcessId: string = "GrainPostProcessEffect";
+        private readonly GrainPostProcessId: string = "GrainPostProcessEffect";
 
         // Post-processes
         /**

+ 1 - 2
src/Shaders/extractHighlights.fragment.fx

@@ -4,11 +4,10 @@
 varying vec2 vUV;
 uniform sampler2D textureSampler;
 uniform float threshold;
-const vec3 RGBLuminanceCoefficients = vec3(0.2126, 0.7152, 0.0722);
 
 void main(void) 
 {
 	gl_FragColor = texture2D(textureSampler, vUV);
-	float luma = getLuminance(gl_FragColor.rgb);
+	float luma = getLuminance(toLinearSpace(gl_FragColor.rgb));
 	gl_FragColor.rgb = step(threshold, luma) * gl_FragColor.rgb;
 }

BIN
tests/validation/ReferenceImages/DefaultRenderingPipeline.png


BIN
tests/validation/ReferenceImages/defaultPipeline.png


+ 1 - 1
tests/validation/config.json

@@ -286,7 +286,7 @@
     },
     {
       "title": "Default pipeline",
-      "playgroundId": "#NAW8EA#3",
+      "playgroundId": "#NAW8EA#5",
       "renderCount": 20,
       "referenceImage": "defaultPipeline.png"
     },