CullingAndLod.bv.lua 986 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. g_testCaseFolder = 'CullingAndLod'
  13. Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder .. g_testCaseFolder))
  14. OpenSample('RPI/CullingAndLod')
  15. ResizeViewport(500, 500)
  16. SelectImageComparisonToleranceLevel("Level G")
  17. SetImguiValue("Begin Verification", true)
  18. IdleFrames(5)
  19. CaptureScreenshot(g_testCaseFolder .. '/screenshot_1.png')
  20. IdleFrames(1)
  21. SetImguiValue("End Verification", true)
  22. IdleFrames(1) -- make sure all outstanding imgui comamnds are processed before closing sample.
  23. OpenSample(nil)