Initialer Upload neues Unity-Projekt

This commit is contained in:
oxidiert
2025-07-09 11:02:37 +02:00
commit da5f268d21
1474 changed files with 76390 additions and 0 deletions

View File

@ -0,0 +1,32 @@
// This is free and unencumbered software released into the public domain.
// For more information, please refer to <http://unlicense.org/>
using UnityEngine;
namespace CapturePanorama.Internals
{
public class ScreenFadeControl : MonoBehaviour
{
public Material fadeMaterial = null;
// Based on OVRScreenFade
#if UNITY_ANDROID && !UNITY_EDITOR
void OnCustomPostRender()
#else
void OnPostRender()
#endif
{
fadeMaterial.SetPass(0);
GL.PushMatrix();
GL.LoadOrtho();
GL.Color(fadeMaterial.color);
GL.Begin(GL.QUADS);
GL.Vertex3(0f, 0f, -12f);
GL.Vertex3(0f, 1f, -12f);
GL.Vertex3(1f, 1f, -12f);
GL.Vertex3(1f, 0f, -12f);
GL.End();
GL.PopMatrix();
}
}
}