Page 1 of 1

Skyshop shader error

PostPosted: Tue Feb 17, 2015 3:00 pm
by captainpoc
I have the latest versions, my graphics card is a 780M which apparently supports DX11.

When I apply the Amplify Texture/Marmoset/DiffuseIBL I get pink.

I noticed that on this shader has an error "expression left ."worldP" is not a struct or array" can't find any reference to this error online.

It also says "shader has errors or is not supported by your graphics card"

the error is on line 51

#if !defined(MARMO_COMPUTE_WORLD_POS)
o.worldP.xyz = mul(_Object2World, v.vertex).xyz;
//else worldP is computed in the fragment shader

My colleague did a "really nasty hack" and made it work, but warned me it may cause other errors:

#define MARMO_COMPUTE_WORLD_POS
#if !defined(MARMO_COMPUTE_WORLD_POS)
o.worldP.xyz = mul(_Object2World, v.vertex).xyz;
//else worldP is computed in the fragment shader


Any ideas?

Re: Skyshop shader error

PostPosted: Tue Feb 17, 2015 5:25 pm
by Ricardo Teixeira
Hello,

Excluding graphic card related issues, from the description it does sound like a possible version mismatch. What Unity version do you currently use?

We are about to release a new AT2 update that will ensure compatibility with the latest Unity version available and third-party shader packages.

We will be in touch soon, thank you for reporting the problem.

Ricardo Teixeira

Re: Skyshop shader error

PostPosted: Thu Mar 12, 2015 4:04 pm
by Ricardo Teixeira
Hello,

We just launched a new AT2 Update, we strongly recommend using the new version.

Among other features it includes full Unity 5 support; be sure to check the full release notes in the Download Page.

Thanks!