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