struct vertexOutput {
float4 HPosition : POSITION;
float3 UV : TEXCOORD0;
float3 LightVec : TEXCOORD1;
float3 WorldTangent : TEXCOORD2;
float3 WorldBitangent : TEXCOORD3;
float3 WorldNormal : TEXCOORD4;
float3 WorldView : TEXCOORD5;
_noperspective float3 TCstep : TEXCOORD6;
};
Interpolation types in HLSL
Has anyone gotten interpolation types to actually work? I'm referring to the modifiers documented here. I have this as VS->PS pipe:
..which produces this:
error X3039: 'TCstep': structure members cannot be target specific
Unsettlingly, this is the same error produced if I specify other modifiers, including invalid ones.
I believe that's a typo in the docs. There shouldn't be an underscore before noperspective (or any of the other interpolation types for that matter).
Oh, and for the nointerpolate type, the docs say that it only works on integer types. As far as I can tell, it works fine on other types. I'm not sure if this is a documentation bug, or if that's actually intended behaviour.
Oh, and for the nointerpolate type, the docs say that it only works on integer types. As far as I can tell, it works fine on other types. I'm not sure if this is a documentation bug, or if that's actually intended behaviour.
Interpolation modifiers only work in DX10. Can you give us the fxc compile line you use to build this shader?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement