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
final boolean isSave = true; // save as png | |
final int FrameN = 4; | |
final int N = 5000; // random walk number | |
final int alpha = 15; // line alpha | |
// random walk parameter | |
final float startRadius = 45; | |
final float addRadius = 45; |
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.ShaderGraph; | |
using System.Reflection; | |
[Title("Distance", "Triangle")] | |
public class TriangleNode : CodeFunctionNode | |
{ | |
public TriangleNode() |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
/// <summary> | |
/// エディター拡張 | |
/// </summary> |
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.ShaderGraph; | |
using System.Reflection; | |
[Title("Distance", "Hexagon")] | |
public class HexagonNode : CodeFunctionNode | |
{ | |
public HexagonNode() |
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.Reflection; | |
using UnityEditor.ShaderGraph; | |
using UnityEngine; | |
/// <summary> | |
/// レイマーチングで球をたくさん表示するカスタムノード | |
/// </summary> | |
[Title ("Raymarching", "Raymarch Sphere")] | |
public class RaymarchingSphereNode : CodeFunctionNode { | |
public RaymarchingSphereNode () { |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
[CustomEditor(typeof(GenerateBezierTube))] | |
public class GenerateBezierTubeInspector : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ | |
var bezierTube = target as GenerateBezierTube; |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
[CustomEditor(typeof(GenerateManySphere))] | |
public class GenerateManySphereInspector : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ | |
base.OnInspectorGUI(); |
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.ShaderGraph; | |
using System.Reflection; | |
/// <summary> | |
/// ドメインワーピング(http://www.iquilezles.org/www/articles/warp/warp.htm) | |
/// </summary> | |
[Title("Custom", "Domain Warping(@iquilezles)")] | |
public class DomainWarpingNode : CodeFunctionNode | |
{ |
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.IO; | |
public class GradientToPng : EditorWindow | |
{ | |
[SerializeField] | |
private Gradient m_Gradient; | |
[MenuItem("Tools/Gradient To Png")] |
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; | |
[RequireComponent(typeof(MeshFilter))] | |
[RequireComponent(typeof(MeshRenderer))] | |
public class GenerateManyCube : MonoBehaviour | |
{ | |
[SerializeField] bool m_GenerateMeshOnUpdate = false; | |
[Space] | |
[SerializeField] Vector3 m_CubeScale = new Vector3(1f, 1f, 1f); // 立方体の大きさ | |
[SerializeField] Vector3Int m_CubeNumbers = new Vector3Int(4, 2, 4); // 立方体の個数 |