Vive_Mirror.cs 559 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using UnityEngine;
  3. public class Vive_Mirror : MonoBehaviour
  4. {
  5. private const string m_Shader_Path = "Shaders/Vive_Mirror";
  6. private const string m_MainCam_Name = "Main Camera (eye)";
  7. [SerializeField]
  8. private int m_TextureSize = 2048;
  9. [SerializeField]
  10. private float m_ClipPlaneOffset = 0.07f;
  11. [SerializeField]
  12. private LayerMask m_ReflectLayers = -1;
  13. private Renderer m_My_Render;
  14. private bool m_SelfRendering;
  15. private RenderTexture m_Left_Texture;
  16. private RenderTexture m_Right_Texture;
  17. private Camera m_Reflect_Camera;
  18. }