MSAA_RPI_Test.bv.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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 TakeScreenShot4xCylinder()
  13. SetImguiValue('Mode/MSAA 4x', true)
  14. SetImguiValue('Model/ShaderBall', true)
  15. ArcBallCameraController_SetDistance(4.0)
  16. IdleFrames(10) -- Need a few frames to let all Ibl mip levels load in
  17. CaptureScreenshot(g_testCaseFolder .. '/screenshot_msaa4x_cylinder.png')
  18. end
  19. g_testCaseFolder = 'MSAA_RPI'
  20. Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder .. g_testCaseFolder))
  21. OpenSample('RPI/MSAA')
  22. ResizeViewport(800, 600)
  23. SelectImageComparisonToleranceLevel("Level G")
  24. TakeScreenShot4xCylinder()
  25. OpenSample(nil)