Last active
August 29, 2015 14:17
-
-
Save aras-p/1c2e27b71006023a1108 to your computer and use it in GitHub Desktop.
min16float workaround
This file contains 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
// 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