Skip to content

Instantly share code, notes, and snippets.

View quizcanners's full-sized avatar

Yurii Selinnyi quizcanners

View GitHub Profile
// Article: https://medium.com/@quizcanners/unity-i-have-a-custom-editor-for-every-script-5eddf20fdacc
using System.Collections.Generic;
using QuizCanners.Inspector;
#if UNITY_EDITOR
using UnityEditor;
#endif
public class SomeScript : MonoBehaviour: IPEGI {
@quizcanners
quizcanners / Tricks for SDF
Last active June 13, 2022 17:33
SDF Functions
Revolution. Use length(xy) as one of the parameters for any function.
Subtract X from SDF - scale it up.
max - intersect
min - unite
lerp(sdf1, sdf2, t) to morph the two