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; | |
namespace Gists | |
{ | |
// The algorithm is from the "Fast Poisson Disk Sampling in Arbitrary Dimensions" paper by Robert Bridson. | |
// https://www.cs.ubc.ca/~rbridson/docs/bridson-siggraph07-poissondisk.pdf | |
public static class FastPoissonDiskSampling | |
{ |
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
// Possible workaround for the 2D Renderers not allowing you to assign Renderer Features yet. | |
// Enqueues a ScriptableRenderPass without relying on a Renderer Feature | |
// Used with https://github.com/Cyanilux/URP_BlitRenderFeature/blob/master/Blit.cs | |
public class Renderer2DBlitTest : MonoBehaviour { | |
public Blit.BlitSettings settings; | |
private Blit.BlitPass blitPass; | |
private void OnEnable(){ | |
blitPass = new Blit.BlitPass(settings.Event, settings, "BlitTest"); |
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
import os | |
import subprocess | |
import time | |
import re | |
from pathlib import Path | |
# Set the path to your Godot project and Godot executable | |
GODOT_PROJECT_PATH = Path("myproject") | |
GODOT_EXECUTABLE = "godot" # or the path to your Godot executable | |
GODOT_LOG_FILE = Path("artifacts") / "godot_output.log" # Log file to store Godot output |