TransparentTest.bv.lua 1.0 KB

12345678910111213141516171819202122232425262728293031
  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 = 'TransparentTest'
  13. Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder .. g_testCaseFolder))
  14. OpenSample('Features/Transparency')
  15. ResizeViewport(500, 500)
  16. SelectImageComparisonToleranceLevel("Level F")
  17. ArcBallCameraController_SetDistance(2.0)
  18. ArcBallCameraController_SetHeading(DegToRad(45))
  19. ArcBallCameraController_SetPitch(DegToRad(-35))
  20. IdleFrames(1)
  21. CaptureScreenshot(g_testCaseFolder .. '/screenshot_front.png')
  22. ArcBallCameraController_SetHeading(DegToRad(135))
  23. IdleFrames(1)
  24. CaptureScreenshot(g_testCaseFolder .. '/screenshot_back.png')
  25. OpenSample(nil)