Decals.bv.lua 952 B

123456789101112131415161718192021222324252627282930
  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. function TakeScreenshots()
  13. CaptureScreenshot(g_testCaseFolder .. '/screenshot_decals.png')
  14. end
  15. g_testCaseFolder = 'Decals';
  16. Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder .. g_testCaseFolder))
  17. OpenSample('RPI/Decals')
  18. ResizeViewport(1600, 900)
  19. SelectImageComparisonToleranceLevel("Level G")
  20. ArcBallCameraController_SetDistance(4.0)
  21. -- Wait until decals are loaded in
  22. IdleFrames(5)
  23. SetImguiValue('Clone decals', true)
  24. TakeScreenshots()
  25. OpenSample(nil)