Skip to content

Instantly share code, notes, and snippets.

View TriggerEdge's full-sized avatar

IEdge TriggerEdge

  • Bit Edge Games
  • 18°20'39.01"N 66°45'8.79"W
View GitHub Profile
@TriggerEdge
TriggerEdge / GFBMDL.cs
Last active April 27, 2024 20:40
A conversion from https://github.com/RandomTBush/RTB-3DSMax-Scripts/blob/main/Scripts/PokemonSwitch_GFBMDL-TRMDL.ms made for my personal use to import PLGPE-SWSH models as Fbx into unity. TRMDL part not included. Shared in case someone find it usefully
// Original maxscript autor: RandomTalkingBush
// https://github.com/RandomTBush/RTB-3DSMax-Scripts/blob/main/Scripts/PokemonSwitch_GFBMDL-TRMDL.ms
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEngine;
using Autodesk.Fbx;
@TriggerEdge
TriggerEdge / BlurEffect.compute
Created May 26, 2023 15:50 — forked from Refsa/BlurEffect.compute
Unity URP custom render feature for UI Blur
#pragma kernel Downscale
#pragma kernel GaussianBlurVertical
#pragma kernel GaussianBlurHorizontal
#pragma kernel BoxBlur
Texture2D<float4> _Source;
RWTexture2D<float4> _Dest;
float _Amount;
float2 _Size;
@TriggerEdge
TriggerEdge / DI-Corvus-Trivia.md
Created October 25, 2022 20:33 — forked from peterwzhang/DI-Corvus-Trivia.md
Diablo Immortal Corvus Trivia Answers

Diablo Immortal Corvus Trivia Answers

This is a collection of the Corvus Expedition Trivia questions seen on the Pandemonium server

  1. Which demon has never been among the three Prime Evils - Azmodan
  2. This angel helped create humanity - Inarius
  3. Alive without breath. Cold as death. Never thirst but always drink. - Fish
  4. The Worldstone is known by each of these names except one - The Crystal Spear
  5. The Lord of Lies, never to be trusted, always in the shadows - Belial
  6. How many Great Evils are there - 7 great evils
  7. The more that are taken, The more left behind - Footsteps
  8. The Lord of Pain and the king of maggots - Duriel
@TriggerEdge
TriggerEdge / Translate.cs
Created October 28, 2021 12:10 — forked from grimmdev/Translate.cs
Translate method/api using Unity 3D. Completely Free with no Restrictions, by using Google's Internal API, we cut out the need for any api keys.
// We need this for parsing the JSON, unless you use an alternative.
// You will need SimpleJSON if you don't use alternatives.
// It can be gotten hither. http://wiki.unity3d.com/index.php/SimpleJSON
using SimpleJSON;
using UnityEngine;
using System.Collections;
public class Translate : MonoBehaviour {
// Should we debug?
@TriggerEdge
TriggerEdge / JobUtility.cs
Last active August 1, 2020 19:32
Simple utility to start a job with callbacks in unity.
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Unity.Jobs;
namespace IEdge {
/// <summary>
/// Simple utility to start a job with callbacks.
@TriggerEdge
TriggerEdge / ScreenRecorder.cs
Created February 25, 2020 03:24 — forked from DashW/ScreenRecorder.cs
ScreenRecorder - High Performance Unity Video Capture Script
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading;
class BitmapEncoder
{
public static void WriteBitmap(Stream stream, int width, int height, byte[] imageData)
@TriggerEdge
TriggerEdge / TextureAnimation.shader
Created January 23, 2020 15:13 — forked from mattatz/TextureAnimation.shader
Texture animation shader for Unity.
Shader "Mattatz/TextureAnimation"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_Color ("Color", Color) = (1, 1, 1, 1)
_Cols ("Cols Count", Int) = 5
_Rows ("Rows Count", Int) = 3
_Frame ("Per Frame Length", Float) = 0.5
@TriggerEdge
TriggerEdge / gist:87a31ed5eaf4f1a85e7f51c5a3275c60
Created March 3, 2019 02:43 — forked from funnythingz/gist:7508295
get pokemon xy sprites script
<?php
for($i = 1; $i <= 718; $i++) {
if($i < 10) {
shell_exec("wget -xP pokemon_xy_imgs/ http://www.pokemontrash.com/pokemon-x-y/images/sprites/00".$i.".png"."\n");
}elseif($i >= 10 && $i < 100) {
shell_exec("wget -xP pokemon_xy_imgs/ http://www.pokemontrash.com/pokemon-x-y/images/sprites/0".$i.".png"."\n");
}else{
shell_exec("wget -xP pokemon_xy_imgs/ http://www.pokemontrash.com/pokemon-x-y/images/sprites/".$i.".png"."\n");
}
@TriggerEdge
TriggerEdge / ExtractMeshToFBX.cs
Created February 17, 2019 05:25 — forked from JohannesMP/ExtractMeshToFBX.cs
Using the Unity FBX SDK to save a single Mesh as an FBX. Uses Unity FBX SDK from: https://assetstore.unity.com/packages/essentials/101408
using System.IO;
using UnityEngine;
using UnityEditor;
using Unity.FbxSdk;
using FbxExporters.Editor;
// Place in 'Editor' folder
public static class ExtractMeshToFBX
{
// true: fbx file is easy-to-debug ascii, false: fbx file is binary.
@TriggerEdge
TriggerEdge / SaveFBX.cs
Created February 16, 2019 00:43 — forked from mstevenson/SaveFBX.cs
ASCII FBX file exporter for Unity. Extracted from Michal Mandrysz's Unity Summer of Code 2009 external lightmapping project.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using UnityEditor;
using UnityEngine;
/*