Skip to content

Instantly share code, notes, and snippets.

View HarukaKajita's full-sized avatar

HarukaKajita HarukaKajita

View GitHub Profile
@HarukaKajita
HarukaKajita / AsyncTest.cs
Created April 24, 2021 08:35
unityで非同期処理のテスト
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using Debug = UnityEngine.Debug;
public class AsyncTest : MonoBehaviour {
List<int> results = new List<int>();
@HarukaKajita
HarukaKajita / MatrixTest.shader
Created September 16, 2021 22:35
P行列関係の詳しい内容を学びつつ座標変換後の座標の値域検証したシェーダー
Shader "Unlit/MatrixTest" {
Properties {
_MainTex ("Texture", 2D) = "white" {}
_X ("X", range(0,1)) = 0
_Y ("Y", range(0,1)) = 0
_Z ("Z", range(0,1)) = 0
_W ("W", range(0,1)) = 0
}
SubShader {
Pass {
@HarukaKajita
HarukaKajita / PointMeshMaker.cs
Last active October 17, 2022 06:45
UnityのMeshから点だけのMeshを作るwindow
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
public class PointMeshMaker : EditorWindow
{
private Mesh mesh;
private bool update = false;