This file contains 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; | |
public class DrawMeshInstancedDemo : MonoBehaviour { | |
[SerializeField] | |
private Color color1; | |
[SerializeField] | |
private Color color2; |
This file contains 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.Generic; | |
using UnityEngine; | |
public static class Fibonacci | |
{ | |
private static Dictionary<int, Vector3[]> fibonacciSphereCache = new Dictionary<int, Vector3[]>(); | |
public static Vector3[] FibonacciSphere(int samples) | |
{ | |
if (fibonacciSphereCache.ContainsKey(samples)) |
OlderNewer