Пример #1
0
        public ioVRContext()
        {
            // We'll keep those always the same
            _Materials = new DefaultMaterialPalette();
            bool isNew = !System.IO.File.Exists("VRSettings.xml");

            _Settings = VRSettings.Load <VRSettings>("VRSettings.xml");

            // IPDのデフォルトを10に設定(巨人化防止)
            if (isNew)
            {
                _Settings.IPDScale = 10f;
                _Settings.Save();
            }
            // Set defaults
            ConfineMouse = true;
            EnforceDefaultGUIMaterials = false;
            GUIAlternativeSortingMode  = false;
            GuiLayer         = "Default";
            GuiFarClipPlane  = 1000f;
            GuiNearClipPlane = -1000f;
            IgnoreMask       = 0;
            InvisibleLayer   = "Ignore Raycast";
            PrimaryColor     = Color.cyan;
            SimulateCursor   = true;
            UILayer          = "UI";
            UILayerMask      = LayerMask.GetMask(UILayer);
            UnitToMeter      = 1f;
            NearClipPlane    = 0.1f;
            PreferredGUI     = GUIType.uGUI;
        }
Пример #2
0
        public PlayClubContext()
        {
            _Materials = new DefaultMaterialPalette();
            _Settings  = VRSettings.Load <PlayClubSettings>("vr_settings.xml");

            _Materials.StandardShader = Shader.Find("Marmoset/Specular IBL");
        }
Пример #3
0
        protected override IMaterialPalette CreateMaterialPalette()
        {
            var palette = new DefaultMaterialPalette();

            palette.UnlitTransparent         = new Material(UnityHelper.GetShader("UnlitColorCutout"));
            palette.UnlitTransparentCombined = new Material(UnityHelper.GetShader("UnlitColorCutoutCombined"));

            return(palette);
        }
Пример #4
0
 public SexyStudioContext()
 {
     _Materials = new DefaultMaterialPalette();
     _Settings  = VRSettings.Load <VRSettings>("vr_settings.xml");
     // XXX The only available shader wtf??
     _Materials.StandardShader = Shader.Find("Diffuse");
     //_Materials.StandardShader = Shader.Find("Marmoset/Specular IBL");
     Logger.Info("StandardShader is {0}", _Materials.StandardShader);
 }
Пример #5
0
        public AGHContext()
        {
            _Materials = new DefaultMaterialPalette();
            _Materials.StandardShader = _Materials.Unlit.shader;
            bool isNew = !System.IO.File.Exists("vr_settings.xml");

            _Settings = VRSettings.Load <AGHSettings>("vr_settings.xml");

            if (isNew)
            {
                _Settings.IPDScale = 5f;
                _Settings.Save();
            }
        }
Пример #6
0
        public MainGameContext()
        {
            _Materials = new DefaultMaterialPalette();
            Settings   = KoikatuSettings.Load(Path.Combine(configPath, "VRSettings.xml"));

            ConfineMouse = true;
            EnforceDefaultGUIMaterials = false;
            GUIAlternativeSortingMode  = false;
            GuiLayer         = "Default";
            GuiFarClipPlane  = 1000f;
            GuiNearClipPlane = -1000f;
            IgnoreMask       = 0;
            InvisibleLayer   = "Ignore Raycast";
            PrimaryColor     = Color.cyan;
            SimulateCursor   = true;
            UILayer          = "UI";
            UILayerMask      = LayerMask.GetMask(UILayer);
            UnitToMeter      = 1f;
            NearClipPlane    = 0.001f;
            PreferredGUI     = GUIType.uGUI;
            CameraClearFlags = CameraClearFlags.Skybox;
        }
Пример #7
0
        public ConfigurableContext()
        {
            // We'll keep those always the same
            _Materials = new DefaultMaterialPalette();
            _Settings  = HS2VRSettings.Load("VRSettings.xml");

            // Set defaults
            ConfineMouse = true;
            EnforceDefaultGUIMaterials = false;
            GUIAlternativeSortingMode  = false;
            GuiLayer         = "Default";
            GuiFarClipPlane  = 1000f;
            GuiNearClipPlane = -1000f;
            IgnoreMask       = 0;
            InvisibleLayer   = "Ignore Raycast";
            PrimaryColor     = Color.cyan;
            SimulateCursor   = true;
            UILayer          = "UI";
            UILayerMask      = LayerMask.GetMask(UILayer);
            UnitToMeter      = 1f;
            NearClipPlane    = 0.1f;
            PreferredGUI     = GUIType.uGUI;
        }
Пример #8
0
 public VookaContext()
 {
     _Materials = new DefaultMaterialPalette();
     _Settings  = VRSettings.Load <RayleeSettings>("vr_settings.xml");
 }