Browse Source

merging latest dev

Signed-off-by: antonmic <[email protected]>
antonmic 3 years ago
parent
commit
49cb23e540

+ 23 - 0
Scripts/DepthOfFieldTest.bv.lua

@@ -0,0 +1,23 @@
+----------------------------------------------------------------------------------------------------
+--
+-- Copyright (c) Contributors to the Open 3D Engine Project.
+-- For complete copyright and license terms please see the LICENSE at the root of this distribution.
+--
+-- SPDX-License-Identifier: Apache-2.0 OR MIT
+--
+--
+--
+----------------------------------------------------------------------------------------------------
+
+g_screenshotOutputFolder = ResolvePath('@user@/Scripts/Screenshots/DepthOfFieldTest/')
+Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder))
+
+OpenSample('Features/DepthOfField')
+ResizeViewport(800, 600)
+SelectImageComparisonToleranceLevel("Level D")
+
+IdleSeconds(5)
+
+CaptureScreenshot(g_screenshotOutputFolder .. '/screenshot_depth_of_field.png')
+
+OpenSample(nil)

+ 3 - 0
Scripts/ExpectedScreenshots/DepthOfFieldTest/screenshot_depth_of_field.png

@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d7b2e6a462b7e1590dd3510cd227c144b8ea4e6b6f63da01b537400ed30682d2
+size 179921

+ 1 - 1
Scripts/_FullTestSuite_.bv.lua

@@ -67,6 +67,7 @@ tests= {
     RunScriptWrapper('scripts/RenderTargetTexture.bv.luac'),
     RunScriptWrapper('scripts/PassTree.bv.luac'),
     RunScriptWrapper('scripts/ReadbackTest.bv.luac'),
+    RunScriptWrapper('scripts/depthoffieldtest.bv.luac'),
 
     --Fast checking for the samples which don't have a test. Samples should be removed from this list once they have their own tests
 
@@ -101,7 +102,6 @@ tests= {
     FastCheckSample('RPI/RootConstants'),
 
     FastCheckSample('Features/Bloom'),
-    FastCheckSample('Features/DepthOfField'),
     FastCheckSample('Features/Exposure'),
     FastCheckSample('Features/SkinnedMesh'),
     FastCheckSample('Features/SSAO'),