Skip to content

Instantly share code, notes, and snippets.

View sniperykun's full-sized avatar
🎯
Focusing

sniperykun sniperykun

🎯
Focusing
View GitHub Profile
@sniperykun
sniperykun / ToggleTest.shader
Created October 20, 2020 13:48 — forked from keijiro/ToggleTest.shader
Shows how to use the Toggle material property drawer in a shader. See the reference manual for further details: http://docs.unity3d.com/ScriptReference/MaterialPropertyDrawer.html
Shader "ToggleTest"
{
Properties
{
[Toggle(FILL_WITH_RED)]
_FillWithRed ("Fill With Red", Float) = 0
}
SubShader
{
Pass
@sniperykun
sniperykun / LICENSE.txt
Created July 29, 2020 08:37 — forked from michaelbartnett/LICENSE.txt
Tuple implementation for use with Unity3d
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@sniperykun
sniperykun / simplegl.cpp
Created April 6, 2020 06:10
openglwindow
// set Library Search Paths for project
// set Frameworks glfw glew opengl
// set header include serach path
// Signing&Capabilities Disable Library Validation
// #define GL_SILENCE_DEPRECATION
#ifdef __APPLE__
#define GL_SILENCE_DEPRECATION
#endif
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@sniperykun
sniperykun / AdbCommands
Created November 22, 2019 15:03 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell