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.Text; | |
using UnityEditor; | |
using UnityEngine; | |
public class UVChecker : EditorWindow | |
{ | |
private GameObject targetGameObject; | |
private MeshFilter targetMeshFilter; | |
private Texture2D tex; |
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.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
[ExecuteInEditMode, RequireComponent(typeof(Camera))] | |
public class RaymarchingRenderer : MonoBehaviour, IDisposable | |
{ | |
private const CameraEvent RENDER_PASS = CameraEvent.AfterGBuffer; |
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 UnityEngine; | |
/// <summary> | |
/// GameビューにてSceneビューのようなカメラの動きをマウス操作によって実現する | |
/// </summary> | |
[RequireComponent(typeof(Camera))] | |
public class SceneViewCamera : MonoBehaviour | |
{ | |
[SerializeField, Range(0.1f, 10f)] | |
private float wheelSpeed = 1f; |
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
#ifndef GBUFFER_VARIANT | |
#define GBUFFER_VARIANT | |
sampler2D _CameraGBufferTexture0; | |
sampler2D _CameraGBufferTexture1; | |
sampler2D _CameraGBufferTexture2; | |
sampler2D _CameraGBufferTexture3; | |
#endif //GBUFFER_VARIANT |
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
#pragma multi_compile _ Lighting_ON Lighting_OFF |
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 "MBL/NextPage" | |
{ | |
Properties | |
{ | |
_MainTex("Texture", 2D) = "white" {} | |
_PageTex("PageTexture", 2D) = "white" {} | |
_AlphaMask("AlphaMask", Range(0, 1)) = 0.1 | |
_Flip("Flip",Range(-1, 1)) = 0 | |
} | |
SubShader |
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 "MBL/Repeat" | |
{ | |
Properties | |
{ | |
[NoScaleOffset] | |
_MainTex("Texture", 2D) = "white" {} | |
_OffsetX("OffsetX", Float) = 0.0 | |
_OffsetY("OffsetY", Float) = 0.0 | |
} | |
SubShader |
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 UnityEditor; | |
[InitializeOnLoad] | |
public class ExecutionOrderManager : Editor | |
{ | |
static ExecutionOrderManager() | |
{ | |
foreach (MonoScript monoScript in MonoImporter.GetAllRuntimeMonoScripts()) | |
{ |
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 "MBL/UI/UIFade" | |
{ | |
Properties | |
{ | |
[HideInInspector] | |
_MainTex ("Texture", 2D) = "white" {} | |
_BGTex("BGTexture", 2D) = "white" {} | |
_Clip ("Clip", Range(0,1)) = 0 | |
_SrcCol ("SourceColor", Color) = (0,0,0,1) | |
_DstCol ("DestinationColor", Color) = (1,1,1,1) |
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
/*手動で変更しないでください*/ | |
public enum AudioKey | |
{ | |
} |