Special FX Shaders & Animated FX Shaders [Asset Store]

Hello!
I created Special FX Shaders & Animated FX Shaders which is perfect for creating different effects and spells.

Special FX Shaders [Unity 5.3.0+] [$10] [Open Source] [Upgrade price from Animated FX Shaders is $3.50]
Animated FX Shaders [Unity 4.3.0 - 4.x.x] [$5]

All effects from Animated FX Shaders imported to Special FX Shaders package.

Special FX Shaders has many features and custom inspector.

Each texture in the shader has many different settings, such as enabling and disabling alpha channel, invert textures and alpha channel, animation. This shaders has different types of animation: panoramic, rotating, tile.

1 Like

Special FX Shaders come to Unity 5.2.0, need wait few days.

Hi I recently purchased your asset. But for some reason I keep getting these errors and then the effects have purple color. I’ve tried reimporting the asset but it brakes.

I’m using Unity 5.4.1p3 and Android/iOS platform.

Shader error in 'Special FX/FX': syntax error: unexpected token 'o' at line 146 (on d3d11)

Compiling Vertex program with FOG_EXP2
Platform defines: UNITY_NO_SCREENSPACE_SHADOWS UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF2 UNITY_HARDWARE_TIER3
Shader error in 'Special FX/FX Distortion': Duplicated input semantics can't change type, size, or layout ('TEXCOORD1'). at line 148 (on d3d11)

Compiling Fragment program with FOG_EXP2
Platform defines: UNITY_NO_SCREENSPACE_SHADOWS UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF2 UNITY_HARDWARE_TIER3
Shader error in 'Special FX/FX Distortion': output TEXCOORD1 used more than once at line 148 (on d3d11)

Compiling Vertex program with FOG_EXP2
Platform defines: UNITY_NO_SCREENSPACE_SHADOWS UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF2 UNITY_HARDWARE_TIER3
Shader warning in 'Special FX/FX Distortion': Duplicate non-system value semantic definition: output semantic 'TEXCOORD1' and output semantic 'TEXCOORD1' at line 145 (on d3d11)

Compiling Vertex program with FOG_EXP2
Platform defines: UNITY_NO_SCREENSPACE_SHADOWS UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF2 UNITY_HARDWARE_TIER3
Shader warning in 'Special FX/FX Distortion': Duplicate non-system value semantic definition: output semantic 'TEXCOORD1' and output semantic 'TEXCOORD1' at line 148 (on d3d11)

Compiling Vertex program with FOG_EXP2
Platform defines: UNITY_NO_SCREENSPACE_SHADOWS UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF2 UNITY_HARDWARE_TIER3

yeah I’m getting the same error.

Shader error in 'Special FX/FX Distortion': Duplicated input semantics can't change type, size, or layout ('TEXCOORD1'). at line 150 (on glcore)
Compiling Vertex program with FOG_EXP2 SOFTPARTICLES_ON
Platform defines: UNITY_NO_DXT5nm UNITY_ENABLE_REFLECTION_BUFFERS UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 SHADER_API_DESKTOP UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA

Using Unity 5.6.1 with Build set to iOS.

I will try to fix this error.

I think my case might have been an exception. I removed another part of the effect and the error went away.

Unfortunately the material doesn’t show at all on my iOS device. I haven’t had a chance to problem solve this yet, but is there an easy fix?

Thanks

Try change this:

UNITY_FOG_COORDS(1)

to:

UNITY_FOG_COORDS(5)
1 Like

Thanks, but that didn’t work. It still doesn’t work on the device, and no longer works in the game view in the editor (still works in the scene view though).

Copy code what u have at line 150.

Try this:

struct appdata_t {
                float4 vertex : POSITION;
                fixed4 color : COLOR;
                float2 texcoord : TEXCOORD0;
                float2 texcoord2 : TEXCOORD1;
                float2 texcoord3 : TEXCOORD2;
                float2 discoord : TEXCOORD3;
            };
struct v2f {
                float4 vertex : SV_POSITION;
                fixed4 color : COLOR;
                float2 texcoord : TEXCOORD0;
                float2 texcoord2 : TEXCOORD1;
                float2 texcoord3 : TEXCOORD2;
                float2 discoord : TEXCOORD3;
                UNITY_FOG_COORDS(4)
                #ifdef SOFTPARTICLES_ON
                float4 projPos : TEXCOORD5;
                #endif
            };
v2f vert (appdata_t v)
            {
                v2f o;
                o.vertex = mul(UNITY_MATRIX_MVP, v.vertex);
                #ifdef SOFTPARTICLES_ON
                o.projPos = ComputeScreenPos (o.vertex);
                COMPUTE_EYEDEPTH(o.projPos.z);
                #endif
                o.color = v.color;
                o.texcoord = TRANSFORM_TEX(v.texcoord,_MainTex);
                o.texcoord2 = TRANSFORM_TEX(v.texcoord2,_MainTex2);
                o.texcoord3 = TRANSFORM_TEX(v.texcoord3,_MainTex3);
                o.discoord = TRANSFORM_TEX(v.discoord,_DisTex);
                UNITY_TRANSFER_FOG(o,o.vertex);
                return o;
            }

no that is still the same - works in scene view but nothing else.

Anything else I can try?

Hi,

Are you still working on this? Any plans to get it working on iOS?

Thanks

1 Like