DrawSkyboxPass.cs 734 B

123456789101112131415161718192021222324
  1. using UnityEngine.Scripting.APIUpdating;
  2. namespace UnityEngine.Rendering.Universal
  3. {
  4. /// <summary>
  5. /// Draw the skybox into the given color buffer using the given depth buffer for depth testing.
  6. ///
  7. /// This pass renders the standard Unity skybox.
  8. /// </summary>
  9. [MovedFrom("UnityEngine.Rendering.Internal.Universal")]
  10. public class DrawSkyboxPass : ScriptableRenderPass
  11. {
  12. public DrawSkyboxPass(RenderPassEvent evt)
  13. {
  14. renderPassEvent = evt;
  15. }
  16. /// <inheritdoc/>
  17. public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData)
  18. {
  19. context.DrawSkybox(renderingData.cameraData.camera);
  20. }
  21. }
  22. }