Skip to content

Instantly share code, notes, and snippets.

View uareurapid's full-sized avatar
🏠
Working from home

Paulo Cristo uareurapid

🏠
Working from home
View GitHub Profile
@uareurapid
uareurapid / .env
Created July 27, 2022 11:15 — forked from BlockmanCodes/.env
Get spot prices on Uniswap
INFURA_URL=<your_url>
ETHERSCAN_API_KEY=<your_api_key>
/*
Basic Sprite Shader for aligning pixel art to the same grid, based on the Unity Sprite Shader.
Create one Material where you assign the same Pixels Per Unit value you use on your imported Sprites,
then reuse this Material on all appropriate Sprite Renderers.
(You can use Shader.SetGlobalFloat to set that Pixels Per Unit value for all your shaders:
https://docs.unity3d.com/ScriptReference/Shader.SetGlobalFloat.html)
This is not for scaled or rotated artwork. If you need those features, look at low res render textures.
Use this however you want.