Skip to content

Instantly share code, notes, and snippets.

View ellioman's full-sized avatar

Elvar Örn Unnþórsson ellioman

View GitHub Profile
Shader "Custom/Dissolve" {
Properties {
//_Color and _MainTex are the generic properties needed to add a texture and a color overlay on our object.
[MainTexture] _BaseColor("Base Color", Color) = (1, 1, 1, 1)
[MainColor] _BaseMap("Base Map (RGB) Smoothness / Alpha (A)", 2D) = "white" {}
//The _SliceGuide and _SliceAmount are responsible for the dissolving of our model.
//The first is a texture that will be used to determine the overall shape of the dissolving, while the latter is how much will the object be dissolved,
//where 0 means that the object is unaffected from the dissolving and 1 means that the object is completely dissolved.
_SliceGuide("Slice Guide (RGB)", 2D) = "white" {}
Elvars-MacBook-Pro:platform-tools ellioman$ ./adb logcat
--------- beginning of /dev/log/main
I/PhoneStatusBar( 784): hw_status_bar_operators = true, setSystemUIVisibily(SHOW_OPERATOR = false)
E/cutils ( 149): Failed to mkdirat(/storage/sdcard1/Android): Read-only file system
W/ContextImpl( 3730): Failed to ensure directory: /storage/sdcard1/Android/obb/dk.houseonfire.android.thesilentage
E/cutils ( 149): Failed to mkdirat(/storage/sdcard1/Android): Read-only file system
W/ContextImpl( 3730): Failed to ensure directory: /storage/sdcard1/Android/data/dk.houseonfire.android.thesilentage/files
I/PhoneStatusBar( 784): hw_status_bar_operators = true, setSystemUIVisibily(SHOW_OPERATOR = false)
I/ActivityManager( 604): Displayed dk.houseonfire.android.thesilentage/com.neatplug.u3d.plugins.common.NPUnityPlayerActivity: +256ms
I/CpuGovernorPolicy( 919): cpu draw