MSAA_RPI_Test.bv.lua 1.0 KB

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