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
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
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 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
#r "C:\\Program Files\Unity\Editor\Data\Managed\CrossDomainPolicyParser.dll" | |
#r "C:\\Program Files\Unity\Editor\Data\Managed\ICSharpCode.NRefactory.dll" | |
#r "C:\\Program Files\Unity\Editor\Data\Managed\Mono.Cecil.dll" | |
#r "C:\\Program Files\Unity\Editor\Data\Managed\Mono.Cecil.Mdb.dll" | |
#r "C:\\Program Files\Unity\Editor\Data\Managed\Mono.Cecil.Pdb.dll" | |
#r "C:\\Program Files\Unity\Editor\Data\Managed\nunit.core.dll" | |
#r "C:\\Program Files\Unity\Editor\Data\Managed\nunit.core.interfaces.dll" | |
#r "C:\\Program Files\Unity\Editor\Data\Managed\nunit.framework.dll" | |
#r "C:\\Program Files\Unity\Editor\Data\Managed\Unity.CecilTools.dll" | |
#r "C:\\Program Files\Unity\Editor\Data\Managed\Unity.DataContract.dll" |
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
DirectoryInfo info = new DirectoryInfo(Path.Combine(Directory.GetCurrentDirectory(), "Library")); | |
var assemblies = info.GetFiles("*.dll", SearchOption.AllDirectories); | |
using(var writer = File.CreateText("LoadUnityAssemblies.csx")) | |
{ | |
foreach(var assembliyPath in assemblies) | |
{ | |
writer.WriteLine(string.Format("#r \"{0}\"", assembliyPath.FullName)); | |
} | |
} |
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; | |
using UnityEditor; | |
using System.Linq; | |
using System.Collections; | |
public class BundleTextureWindow : EditorWindow | |
{ | |
static EditorWindow window; | |
Texture[] texs; | |
Vector2 scroll; |
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; | |
namespace Es.InkPainter.Sample | |
{ | |
public class MousePainter : MonoBehaviour | |
{ | |
/// <summary> | |
/// Types of methods used to paint. | |
/// </summary> | |
[System.Serializable] |
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.Linq; | |
using UnityEngine; | |
using Es.InkPainter; | |
public class ReplaceRenderTextureSample : MonoBehaviour | |
{ | |
[SerializeField] | |
InkCanvas canvas; | |
[SerializeField] |
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 UnityEditor; | |
using System.Linq; | |
using System.IO; | |
using Es.InkPainter; | |
public class LocalNormalMapCreator : EditorWindow | |
{ |