Hello all,
I downloaded the ultimate shader pack and am playing with some shaders, namely Evolved's normal mapping. I am modifying it take cube mapping as well and have encountered my first hurdle: when the output structure is modified from this:
struct output
{
float4 OPos:POSITION;
float2 Tex:TEXCOORD0;
float3 LightVec:TEXCOORD1;
float3 Attenuation:TEXCOORD2;
float3 ViewVec:TEXCOORD3;
float Fog:FOG;
};
to this
struct output
{
float4 OPos:POSITION;
float2 Tex:TEXCOORD0;
float3 LightVec:TEXCOORD1;
float3 Attenuation:TEXCOORD2;
float3 ViewVec:TEXCOORD3;
float3 Ref:TEXCOORD4;
float Fog:FOG;
};
The GDK seems to throw up and simply not render the object. Note, the unmodifed code works perfectly so its not my implementation. Things I have tried: switching to the October 2010 update and changing the shader versions from
vertexShader = compile vs_1_1 VS();
pixelShader = compile ps_1_4 PS();
to
vertexShader = compile vs_2_0 VS();
pixelShader = compile ps_2_0 PS();