Skip to content

Instantly share code, notes, and snippets.

Shader "Unlit/VectorGradient (SoftMaskable)"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
[HideInInspector] _RendererColor ("RendererColor", Color) = (1,1,1,1)
// vvvv ADD FOR SOFTMASKABLE vvvv
_StencilComp ("Stencil Comparison", Float) = 8
@mob-sakai
mob-sakai / .releaserc.json
Last active December 23, 2020 08:14
semantic-release-upm
{
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"master",
"main",
{
"name": "preview",
"prerelease": true
}
],
@mob-sakai
mob-sakai / _README.md
Last active April 26, 2025 15:26
Run shell script on gist

Run shell script on gist

Shells that support process substitution such as bash and zsh allow to run shell script on gist as follows.

# With curl:
bash <(curl -sL ${GIST_URL}) args...

# With wget:

Unity CLI Tools (macOS)

Installation

curl -sL https://gist.githubusercontent.com/mob-sakai/c6e1a5362bc6237cfc9caafaf02e1de4/raw/unity.sh >> ~/.zprofile

Usage

@mob-sakai
mob-sakai / 00_Unity Internal Feature Samples.md
Last active March 6, 2025 01:16
Unity Internal Feature Samples
@mob-sakai
mob-sakai / _How_To_Use_GitHub_Releases_As_Markdown_Image_Storage.md
Last active April 11, 2025 22:45
How to use GitHub releases as markdown image storage

How to use GitHub releases as markdown image storage

I often uploaded images to GitHub issues and used their URLs in markdown files (such as README.md).
This method was convenient since it didn’t require adding the images to the repository, and each image had a unique URL.
However, in (probably) March 2025, GitHub changed their policy so that accessing images uploaded to issues now requires cookie-based authentication.
This applies even to images uploaded to issues in public repositories.

As a result, the benefit of 'anyone who knows the URL can access the image' has been lost.