Triplanar sampler texture array error
Posted: Thu Feb 14, 2019 4:57 am
Hello! I'm trying to set up some triplanar mapping with a texture array on the LWRP in unity, v2018.3.5f1 Getting the error below, perhaps i missed something?
Shader error in 'AMP_TRIPLANAR_LW': unrecognized identifier 'UNITY_ARGS_TEX2DARRAY' at line 76 (on d3d11)
Compiling Vertex program
Platform defines: UNITY_NO_DXT5nm UNITY_ENABLE_REFLECTION_BUFFERS UNITY_NO_CUBEMAP_ARRAY UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_DLDR_ENCODING
Line 76 contains;
inline float4 TriplanarSamplingSFA( UNITY_ARGS_TEX2DARRAY( topTexMap ), float3 worldPos, float3 worldNormal, float falloff, float tilling, float3 normalScale, float3 index )
Some advice appreciated. Cheers!
Shader error in 'AMP_TRIPLANAR_LW': unrecognized identifier 'UNITY_ARGS_TEX2DARRAY' at line 76 (on d3d11)
Compiling Vertex program
Platform defines: UNITY_NO_DXT5nm UNITY_ENABLE_REFLECTION_BUFFERS UNITY_NO_CUBEMAP_ARRAY UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_DLDR_ENCODING
Line 76 contains;
inline float4 TriplanarSamplingSFA( UNITY_ARGS_TEX2DARRAY( topTexMap ), float3 worldPos, float3 worldNormal, float falloff, float tilling, float3 normalScale, float3 index )
Some advice appreciated. Cheers!