Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.3 KiB

  1. /************************************************************************************
  2. Filename : ONSPPropagationSettings.cs
  3. Content : Exposes settings for Propagation
  4. Copyright : Copyright (c) Facebook Technologies, LLC and its affiliates. All rights reserved.
  5. Licensed under the Oculus SDK Version 3.5 (the "License");
  6. you may not use the Oculus SDK except in compliance with the License,
  7. which is provided at the time of installation or download, or which
  8. otherwise accompanies this software in either electronic or hard copy form.
  9. You may obtain a copy of the License at
  10. https://developer.oculus.com/licenses/sdk-3.5/
  11. Unless required by applicable law or agreed to in writing, the Oculus SDK
  12. distributed under the License is distributed on an "AS IS" BASIS,
  13. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. See the License for the specific language governing permissions and
  15. limitations under the License.
  16. ************************************************************************************/
  17. using System.Collections;
  18. using System.Collections.Generic;
  19. using UnityEngine;
  20. public class ONSPPropagationSettings : MonoBehaviour
  21. {
  22. // quality as a percentage
  23. public float quality = 100.0f;
  24. void Update ()
  25. {
  26. ONSPPropagation.Interface.SetPropagationQuality(quality / 100.0f);
  27. }
  28. }