MSAA_RPI_Test.bv.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. ----------------------------------------------------------------------------------------------------
  2. --
  3. -- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
  4. -- its licensors.
  5. --
  6. -- For complete copyright and license terms please see the LICENSE at the root of this
  7. -- distribution (the "License"). All use of this software is governed by the License,
  8. -- or, if provided, by the license below or the license accompanying this file. Do not
  9. -- remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
  10. -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. --
  12. --
  13. ----------------------------------------------------------------------------------------------------
  14. function TakeScreenShot4xCylinder()
  15. SetImguiValue('Mode/MSAA 4x', true)
  16. SetImguiValue('Model/ShaderBall', true)
  17. ArcBallCameraController_SetDistance(4.0)
  18. IdleFrames(10) -- Need a few frames to let all Ibl mip levels load in
  19. CaptureScreenshot(g_screenshotOutputFolder .. '/screenshot_msaa4x_cylinder.ppm')
  20. end
  21. g_screenshotOutputFolder = ResolvePath('@user@/Scripts/Screenshots/MSAA_RPI/')
  22. Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder))
  23. OpenSample('RPI/MSAA')
  24. ResizeViewport(800, 600)
  25. SelectImageComparisonToleranceLevel("Level G")
  26. TakeScreenShot4xCylinder()
  27. OpenSample(nil)