Skip to content

Instantly share code, notes, and snippets.

View kitasenjudesign's full-sized avatar

Kitasenju Design kitasenjudesign

View GitHub Profile
@kitasenjudesign
kitasenjudesign / tezos
Created November 19, 2022 23:38
tezos
I am attesting that this GitHub handle kitasenjudesign is linked to the Tezos account tz1ihXGiK23EsDhjnsLG2KVhFzqM8tj1HJ2U for tzprofiles
sig:edsigtx5GBPHuJy7GBr5h4RpX7JE2tmMErK9m6UghJt3HrizGatC53ZWHznvAgkWHKqpMvHVRE36x1j2D53v3EUrJDYPmNoNysK
@kitasenjudesign
kitasenjudesign / frag.glsl
Created November 9, 2022 04:23
THREE.MeshBasicMaterial
#version 300 es
#define varying in
layout(location = 0) out highp vec4 pc_fragColor;
#define gl_FragColor pc_fragColor
#define gl_FragDepthEXT gl_FragDepth
#define texture2D texture
#define textureCube texture
#define texture2DProj textureProj
#define texture2DLodEXT textureLod
#define texture2DProjLodEXT textureProjLod
@kitasenjudesign
kitasenjudesign / phong.frag.glsl
Created November 9, 2022 02:53
THREE.ShaderLib.phong - vert/frag
#version 300 es
#define varying in
layout(location = 0) out highp vec4 pc_fragColor;
#define gl_FragColor pc_fragColor
#define gl_FragDepthEXT gl_FragDepth
#define texture2D texture
#define textureCube texture
#define texture2DProj textureProj
#define texture2DLodEXT textureLod
#define texture2DProjLodEXT textureProjLod
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MyWebcam : MonoBehaviour
{
private bool _isBackCamera = false;
public WebCamTexture _webcamTex;
[SerializeField] private List<string> _camNames;
@kitasenjudesign
kitasenjudesign / ARFace.obj
Created July 4, 2022 07:04
obj of ARFace in ARFoundation5.0
g ARFace 41449C7DCA05D656-3AED346696EA17AB
v -0.000129713 -0.03338202 -0.05723907
v -0.0001489784 -0.03734173 -0.05761686
v -0.0001093776 -0.02849336 -0.0570647
v -9.847714E-05 -0.0247447 -0.05733912
v -9.533237E-05 -0.02175936 -0.05785171
v -9.000017E-05 -0.0185145 -0.06128548
v -7.861378E-05 -0.01490297 -0.06689071
v -7.285074E-05 -0.01071331 -0.06956749
v -6.474537E-05 -0.004864993 -0.07019056
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//ファイル名と以下のクラス名(InstantiateObjects)が一致するようにする
public class InstantiateObjects : MonoBehaviour
{
[Header("interval秒ごとにオブジェクトを生成する")]
@kitasenjudesign
kitasenjudesign / CubeMapForSphere
Last active January 16, 2022 02:24
CubeMap for sphere mesh (without skybox)
Shader "Unlit/CubeMapForSphere"
{
Properties
{
_Cube ("Cubemap", Cube) = "grey" {}
}
SubShader
{
Tags { "RenderType"="Opaque" }
LOD 100
@kitasenjudesign
kitasenjudesign / BindTest.cs
Created January 13, 2022 04:14
Binding on Unity C#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ProceduralModeling;
public class BindTest : MonoBehaviour
{
[SerializeField] private Mesh _mesh;
[SerializeField] SkinnedMeshRenderer _renderer;
@kitasenjudesign
kitasenjudesign / Lines.cs
Created August 26, 2021 05:50
simple lines
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Lines : MonoBehaviour
{
[SerializeField] private MeshFilter _meshFilter;
private Vector3[] _positions;
private Mesh _mesh;