Skip to content

Instantly share code, notes, and snippets.

@HAliss
Created April 2, 2019 10:06
Show Gist options
  • Save HAliss/1d64a04f8203ab347cc772abbf73af95 to your computer and use it in GitHub Desktop.
Save HAliss/1d64a04f8203ab347cc772abbf73af95 to your computer and use it in GitHub Desktop.
"Sampler2D" : {
"prefix": "sampl",
"body": [
"$1(\"$2\", 2D) = \"white\" {}",
"sampler2D $1;"
],
"description": "Makes a sampler2D property"
},
"Float" : {
"prefix": "fl",
"body": [
"$1(\"$2\", float) = $3",
"float $1;"
],
"description": "Makes a float property"
},
"Color" : {
"prefix": "col",
"body": [
"$1(\"$2\", Color) = (1,1,1,1)",
"fixed4 $1;"
],
"description": "Makes a color property"
},
"Vector" : {
"prefix": "vec",
"body": [
"$1(\"$2\", Vector) = (0,0,0,0)",
"float4 $1;"
],
"description": "Makes a vector property"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment