Skyshop shader error
Posted: Tue Feb 17, 2015 3:00 pm
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?
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?