This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void AddGreedyQuad(float x, float y, float z, int axisU, int axisV, int axisD, int width, int height, int faceDir, | |
| List<Vector3> verts, List<int> tris, List<Vector2> uvs) | |
| { | |
| float p0x; | |
| float p0y; | |
| float p0z; | |
| float p1x; | |
| float p1y; | |
| float p1z; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using UnityEngine; | |
| using UnityEngine.Rendering; | |
| using Random = System.Random; | |
| namespace StellarConquest.Presentation.Unity | |
| { | |
| public class StarfieldMeshBuilder : MonoBehaviour | |
| { | |
| public float SphereRadius = 4000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The Windows 11 Game Bar process causes Unity editor and Unity built games to freeze when the parent window is resized. | |
| Powershell (Admin) | |
| Get-AppxPackage Microsoft.XboxGamingOverlay | Remove-AppxPackage | |
| reg add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR /f /t REG_DWORD /v "AppCaptureEnabled" /d 0 | |
| reg add HKEY_CURRENT_USER\System\GameConfigStore /f /t REG_DWORD /v "GameDVR_Enabled" /d 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.AddressableAssets; | |
| using UnityEngine.ResourceManagement.AsyncOperations; | |
| using UnityEngine.ResourceManagement.ResourceProviders; | |
| using UnityEngine.SceneManagement; | |
| namespace Example | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using BenchmarkDotNet.Columns; | |
| using BenchmarkDotNet.Reports; | |
| using BenchmarkDotNet.Running; | |
| using System.Linq; | |
| namespace Example.Benchmarking | |
| { | |
| public class BenchmarkCustomColumn : IColumn | |
| { | |
| public string Id => nameof(BenchmarkCustomColumn); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Net.Http.Headers; | |
| using System.Text; | |
| using System.Text.Json; | |
| using System.Text.Json.Serialization; | |
| namespace GPTClient | |
| { | |
| class Program | |
| { | |
| static async Task Main(string[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| using System.IO; | |
| using Unity.Collections; | |
| using UnityEngine; | |
| using UnityEngine.Rendering; | |
| namespace Sample | |
| { | |
| public struct Buffer | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "Example/ReflectionProbeMaterial" | |
| { | |
| Properties | |
| { | |
| _Blend0("CubeMap 1 Blend", Range(0.0, 1.0)) = 0.5 | |
| _Blend1("CubeMap 2 Blend", Range(0.0, 1.0)) = 0.5 | |
| _Scalar0("CubeMap 1 Scalar", Range(0.0, 20.0)) = 1.0 | |
| _Scalar1("CubeMap 2 Scalar", Range(0.0, 20.0)) = 1.0 | |
| _Alpha("Alpha", Range(0.0, 1.0)) = 1.0 | |
| [NoScaleOffset] _AlbedoMap("Albedo Map", 2D) = "black" {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Derived from Unity built-in shader source. | |
| // https://raw.githubusercontent.com/chsxf/unity-built-in-shaders/0c7940740e75340009bbed453e2b198e294e4bab/Shaders/DefaultResourcesExtra/Skybox-Panoramic.shader | |
| Shader "Skybox/Dual Panoramic" { | |
| Properties{ | |
| _Tint1("Tint Color 1", Color) = (.5, .5, .5, .5) | |
| _Tint2("Tint Color 2", Color) = (.5, .5, .5, .5) | |
| [Gamma] _Exposure1("Exposure 1", Range(0, 8)) = 1.0 | |
| [Gamma] _Exposure2("Exposure 2", Range(0, 8)) = 1.0 | |
| _Rotation1("Rotation1", Range(0, 360)) = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.IO; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| public class UnityUtils: MonoBehaviour | |
| { | |
| [MenuItem("Tools/Find Broken GUIDs")] |
NewerOlder