DiffuseGITest.bv.lua 971 B

123456789101112131415161718192021222324252627
  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. if GetRenderApiName() == "vulkan" or GetRenderApiName() == "metal" then
  12. Warning("Vulkan or metal is not supported by this test.")
  13. else
  14. g_screenshotOutputFolder = ResolvePath('@user@/Scripts/Screenshots/DiffuseGITest/')
  15. Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder))
  16. OpenSample('Features/DiffuseGI')
  17. ResizeViewport(800, 600)
  18. SelectImageComparisonToleranceLevel("Level G")
  19. IdleSeconds(5)
  20. CaptureScreenshot(g_screenshotOutputFolder .. '/screenshot_cornellbox.png')
  21. end
  22. OpenSample(nil)