Skip to content

Instantly share code, notes, and snippets.

View derwodaso's full-sized avatar

Jan Bubenik derwodaso

View GitHub Profile
@derwodaso
derwodaso / MyShader.shader
Created July 24, 2017 13:36
Shader compiler error when building for OpenGLES30
Shader "Sprites/ShaderBugTest"
{
Properties
{
_ValueB ("A", Range(0, 1)) = 0
_ValueA ("B", Range(0, 1)) = 1
}
SubShader
{
@derwodaso
derwodaso / ScriptingDefineSymbolToggler.cs
Created March 14, 2017 10:34
Disable / Enable ScriptingDefineSymbolds from menu
/* To avoid performance issues caused by string constructions when logging stuff
* to the console, simply surround the code with the the following:
*
* #if DEBUG_LOGGING
* Debug.Log("my" + numer.ToString("0.00") " super" + " expensive " + " string building code");
* #endif
*
* When creating a non-debug build or testing the game for performance, simply disable
* the debug messages from the Unity menu (menu name can be simply changed below).
*/