RenderStandlone.cs 627 B

1234567891011121314151617181920212223
  1. using UnityEngine;
  2. namespace NRKernal.Experimental.NRExamples
  3. {
  4. /// <summary> A render standlone. </summary>
  5. public class RenderStandlone : MonoBehaviour
  6. {
  7. /// <summary> The left. </summary>
  8. public Camera left;
  9. /// <summary> The right. </summary>
  10. public Camera right;
  11. /// <summary> The nr renderer. </summary>
  12. private NRRenderer m_NRRenderer;
  13. /// <summary> Starts this object. </summary>
  14. void Start()
  15. {
  16. m_NRRenderer = gameObject.AddComponent<NRRenderer>();
  17. m_NRRenderer.Initialize(left, right);
  18. }
  19. }
  20. }