EyeMaterialTest.bv.lua 796 B

12345678910111213141516171819202122
  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 = 'EyeMaterial'
  13. Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder .. g_testCaseFolder))
  14. OpenSample('Features/EyeMaterial')
  15. ResizeViewport(1600, 900)
  16. SelectImageComparisonToleranceLevel("Level F")
  17. -- Test with default values
  18. CaptureScreenshot(g_testCaseFolder .. '/screenshot_eye.png')