DiffuseGITest.bv.lua 977 B

1234567891011121314151617181920212223242526272829
  1. ----------------------------------------------------------------------------------------------------
  2. --
  3. -- Copyright (c) Contributors to the Open 3D Engine Project.
  4. -- For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. --
  6. -- SPDX-License-Identifier: Apache-2.0 OR MIT
  7. --
  8. --
  9. --
  10. ----------------------------------------------------------------------------------------------------
  11. RunScript("scripts/TestEnvironment.luac")
  12. if GetRenderApiName() == "vulkan" or GetRenderApiName() == "metal" then
  13. Warning("Vulkan or metal is not supported by this test.")
  14. else
  15. g_testCaseFolder = 'DiffuseGITest'
  16. Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder .. g_testCaseFolder))
  17. OpenSample('Features/DiffuseGI')
  18. ResizeViewport(800, 600)
  19. SelectImageComparisonToleranceLevel("Level G")
  20. IdleSeconds(5)
  21. CaptureScreenshot(g_testCaseFolder .. '/screenshot_cornellbox.png')
  22. end
  23. OpenSample(nil)