Skip to content

Instantly share code, notes, and snippets.

View SixWays's full-sized avatar

Dr Luke Thompson SixWays

View GitHub Profile
@shole
shole / Conditionals.inc
Created November 9, 2017 21:17
Branchless shader logic
/*
Branchless shader logic made sane with macros;
usage;
if (depth>pointdepth){
col=tex2D(_CameraColorTextureP,o.uv);
}else{
col=tex2D(_MainTex,o.uv);
}
@MattRix
MattRix / UnityEditorIcons.txt
Last active May 26, 2024 18:55
A list of all the built-in EdtiorGUI icons in Unity. Use EditorGUIUtility.IconContent([icon name]) to access them.
ScriptableObject Icon
_Popup
_Help
Clipboard
SocialNetworks.UDNOpen
SocialNetworks.Tweet
SocialNetworks.FacebookShare
SocialNetworks.LinkedInShare
SocialNetworks.UDNLogo
animationvisibilitytoggleoff