Skip to content

Instantly share code, notes, and snippets.

View daniellanner's full-sized avatar
❄️
@snowtrack - version control for non-coders

Daniel Lanner daniellanner

❄️
@snowtrack - version control for non-coders
View GitHub Profile
@daniellanner
daniellanner / uf_contracting_button.shader
Last active April 22, 2020 02:39
Contracting Button - Unity shader done for a dribbble shot.
/**
(c) 2020 Daniel Lanner
This code is licensed under MIT license, do with it as you will
This shader creates a contracting button effect I used for a loading animation
*/
Shader "InDiversity/Unlit Frag/Contracting Button"
{
Properties
@daniellanner
daniellanner / uf_expanding_button.shader
Last active April 14, 2020 04:59
Expanding Button - Unity shader done for a dribbble shot.
/**
(c) 2020 Daniel Lanner
This code is licensed under MIT license, do with it as you will
This shader creates an expanding button effect I used for a loading animation to a screen wipe.
It uses the uv.y coordinates to "expand" the button beyond it's boundaries. This means the geometry width
set within the inspector is not the final output as _IdleContraction reduces the de facto height of the button.
*/
Shader "InDiversity/Unlit Frag/Expanding Button"