Shader "MaterialPropertyDrawer"
{
Properties
{
_MainTex("Texture", 2D) = "white" {}
[HideInInspector] _MainTex2("Hide Texture", 2D) = "white" {}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - world is inside cube | |
| - project world to each cube inner plane | |
| - if player exits plane, wrap to other side of cube |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - setup https://phonegap.com/getstarted/ | |
| - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "Scene 1, Layer 'code', Frame 2, Line 20, Column 24 1172: Definition com.adobe.crypto:MD5 could not be found." | |
| File / ActionScript settings... | |
| Add & Browse to folder where your com/ folder is | |
| you can get MD5 library from: | |
| https://github.com/mikechambers/as3corelib/tree/master/src/com/adobe/crypto | |
| so your com/ folder contents are from that as3corelib: | |
| ../com/adobe/air/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // maybe need some other imports also, add if needed | |
| import flash.filesystem.File; | |
| import flash.filesystem.FileStream; | |
| import flash.filesystem.FileMode; | |
| // saves file to C:\Users\username\AppData\Roaming\APPID\Local Store\ | |
| var myfile:File = File.applicationStorageDirectory.resolvePath("hello.txt"); | |
| var mystring = "Hello World!"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // c# companion script | |
| // SpriteUVToShader.cs -------------------------------------------------------------------------------------------------------------------------------- // | |
| // Save you your project, add to your SpriteRenderer gameObject | |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // node.js get keypress | |
| var stdin = process.stdin; | |
| // without this, we would only get streams once enter is pressed | |
| //stdin.setRawMode( true ); | |
| // resume stdin in the parent process (node app won't quit all by itself | |
| // unless an error or process.exit() happens) | |
| stdin.resume(); | |
| // i don't want binary, do you? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://www.compuphase.com/cmetric.htm | |
| int squaredColorDistance(r1,g1,b1,r2,g2,b2) | |
| { | |
| var rmean=(r1+r2)>>1; | |
| var r=r2-r1,g=g2-g1,b=b2-b1; | |
| return (((512+rmean)*r*r)>>8) + ((g * g) << 2) + (((767-rmean)*b*b)>>8); | |
| } | |
| // https://twitter.com/CasualEffects/status/944471362713931776 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create Amazon Server (free tier) | |
| - Login to your amazon account | |
| - go to AWS Management Console | |
| - Select Region from top right menu (to see your existing servers there, or to make new ones) | |
| - From Console Home, Click "Launch a virtual machine" | |
| - From "Launch a virtual machine" page, click " For more options, use the EC2 launch instance wizard" | |
| - Select Region again if its not correct | |
| - Click Launch Instance | |
| - Select the first one "Amazon Linux AMI 2017.09.1 (HVM), SSD Volume Type - The default image includes AWS command line tools, Python, Ruby, Perl, and Java. The repositories include Docker, PHP, MySQL, PostgreSQL, and other packages" | |
| - Then choose instance type, T2.micro is free |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * The following code was taken from: http://schemingdeveloper.com | |
| * | |
| * Visit our game studio website: http://stopthegnomes.com | |
| * | |
| * License: You may use this code however you see fit, as long as you include this notice | |
| * without any modifications. | |
| * | |
| * You may not publish a paid asset on Unity store if its main function is based on | |
| * the following code, but you may publish a paid asset that uses this code. |
