Skip to content

Instantly share code, notes, and snippets.

@aras-p
Last active August 29, 2015 14:17
Show Gist options
  • Save aras-p/1c2e27b71006023a1108 to your computer and use it in GitHub Desktop.
Save aras-p/1c2e27b71006023a1108 to your computer and use it in GitHub Desktop.
min16float workaround
// add this in your shader before using min16float etc. in current (4.x and 5.0)
// unity versions. will fix this soon
#if !defined(SHADER_API_D3D11) && !defined(SHADER_API_D3D11_9X)
#define min16float half
#define min16float2 half2
#define min16float3 half3
#define min16float4 half4
#define min10float fixed
#define min10float2 fixed2
#define min10float3 fixed3
#define min10float4 fixed4
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment