12345678910111213141516171819202122232425262728293031 |
- ----------------------------------------------------------------------------------------------------
- --
- -- Copyright (c) Contributors to the Open 3D Engine Project.
- -- For complete copyright and license terms please see the LICENSE at the root of this distribution.
- --
- -- SPDX-License-Identifier: Apache-2.0 OR MIT
- --
- --
- --
- ----------------------------------------------------------------------------------------------------
- RunScript("scripts/TestEnvironment.luac")
- g_testCaseFolder = 'TransparentTest'
- Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder .. g_testCaseFolder))
- OpenSample('Features/Transparency')
- ResizeViewport(500, 500)
- SelectImageComparisonToleranceLevel("Level F")
- ArcBallCameraController_SetDistance(2.0)
- ArcBallCameraController_SetHeading(DegToRad(45))
- ArcBallCameraController_SetPitch(DegToRad(-35))
- IdleFrames(1)
- CaptureScreenshot(g_testCaseFolder .. '/screenshot_front.png')
- ArcBallCameraController_SetHeading(DegToRad(135))
- IdleFrames(1)
- CaptureScreenshot(g_testCaseFolder .. '/screenshot_back.png')
- OpenSample(nil)
|