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
bl_info = { | |
"name": "GUMDROP", | |
"author": "NathoSteveo", | |
"version": (1, 0, 0),} | |
import bpy | |
import os | |
import math | |
import bmesh |
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 UnityEngine; | |
using UnityEngine.Events; | |
[ExecuteInEditMode] | |
public class SDFTextureGenerator : MonoBehaviour | |
{ | |
[Header("[ TEXTURE TO SDF ]")] | |
[SerializeField] Texture _SOURCE_TEXTURE = null; | |
[SerializeField] Texture _RESULT_TEXTURE = null; |
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 UnityEngine; | |
using UnityEngine.Experimental.Rendering; | |
using UnityEngine.Rendering; | |
public class SDFTexture | |
{ | |
RenderTexture _sdfTexture; | |
RenderTexture _floodTexture; | |
ComputeShader _computeShader; |
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
#include "UnityCG.cginc" | |
#pragma kernel _SeedKernel | |
#pragma kernel _FloodKernel | |
#pragma kernel _DistKernel | |
#pragma kernel _ShowSeedsKernel | |
#pragma multi_compile_local __ _ADD_BORDERS | |
#define THREAD_GROUP_WIDTH 8 |
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
private MeshFilter filter; | |
public void CombineGridPointMeshes() | |
{ | |
combineInstances.Clear(); | |
HashSet<MeshFilter> meshes = new HashSet<MeshFilter>(gridPointMeshes); | |
foreach (MeshFilter filter in meshes) | |
{ |
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
@tool | |
extends Node3D | |
@export var grid_parent: Node3D | |
var grid_size | |
var block_size | |
@export var current_grid_size: int | |
@export var current_block_size: int | |
var grid_block = preload("res://assets/open_world/scenes/grid_block.tscn") | |
var grid_block_mat = preload("res://assets/open_world/shaders/grid_block.tres") |
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
/* | |
███╗░░██╗░█████╗░████████╗██╗░░██╗░█████╗░ ░██████╗████████╗███████╗██╗░░░██╗███████╗░█████╗░ | |
████╗░██║██╔══██╗╚══██╔══╝██║░░██║██╔══██╗ ██╔════╝╚══██╔══╝██╔════╝██║░░░██║██╔════╝██╔══██╗ | |
██╔██╗██║███████║░░░██║░░░███████║██║░░██║ ╚█████╗░░░░██║░░░█████╗░░╚██╗░██╔╝█████╗░░██║░░██║ | |
██║╚████║██╔══██║░░░██║░░░██╔══██║██║░░██║ ░╚═══██╗░░░██║░░░██╔══╝░░░╚████╔╝░██╔══╝░░██║░░██║ | |
██║░╚███║██║░░██║░░░██║░░░██║░░██║╚█████╔╝ ██████╔╝░░░██║░░░███████╗░░╚██╔╝░░███████╗╚█████╔╝ | |
╚═╝░░╚══╝╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░╚═╝░╚════╝░ ╚═════╝░░░░╚═╝░░░╚══════╝░░░╚═╝░░░╚══════╝░╚════╝░ | |
*/ | |
//-------------------------------------------------------------------------------[ OPEN WORLD ] | |
#ifndef SHADOWCOORD_INCLUDED |
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
/* | |
███╗░░██╗░█████╗░████████╗██╗░░██╗░█████╗░ ░██████╗████████╗███████╗██╗░░░██╗███████╗░█████╗░ | |
████╗░██║██╔══██╗╚══██╔══╝██║░░██║██╔══██╗ ██╔════╝╚══██╔══╝██╔════╝██║░░░██║██╔════╝██╔══██╗ | |
██╔██╗██║███████║░░░██║░░░███████║██║░░██║ ╚█████╗░░░░██║░░░█████╗░░╚██╗░██╔╝█████╗░░██║░░██║ | |
██║╚████║██╔══██║░░░██║░░░██╔══██║██║░░██║ ░╚═══██╗░░░██║░░░██╔══╝░░░╚████╔╝░██╔══╝░░██║░░██║ | |
██║░╚███║██║░░██║░░░██║░░░██║░░██║╚█████╔╝ ██████╔╝░░░██║░░░███████╗░░╚██╔╝░░███████╗╚█████╔╝ | |
╚═╝░░╚══╝╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░╚═╝░╚════╝░ ╚═════╝░░░░╚═╝░░░╚══════╝░░░╚═╝░░░╚══════╝░╚════╝░ | |
*/ | |
//-------------------------------------------------------------------------------[ OPEN WORLD ] | |
Shader"NATHO/SHADOW_OUTLINE" |