Original Post
Hi,all
I find that texCUBE always return zero using Pix debug tool, the inReflect coodinate isn't zero; Does anyone know the error? Thanks!
This is my code:
texture EnvironmentMap
<
string type = "CUBE";
string name = "Snow.dds";
>;
samplerCUBE EnvMap = sampler_state
{
Texture = (EnvironmentMap);
MipFilter = LINEAR;
MinFilter = LINEAR;
MagFilter = LINEAR;
AddressU = Wrap;
AddressV = Wrap;
};
sampler2D Wood;
float4 Main(float2 inTxr: TEXCOORD0,float3 inReflect: TEXCOORD1) : COLOR
{
float4 tmp=texCUBE(EnvMap,inReflect.xyz);
return tmp;
}
I find that texCUBE always return zero using Pix debug tool, the inReflect coodinate isn't zero; Does anyone know the error? Thanks!
This is my code:
texture EnvironmentMap
<
string type = "CUBE";
string name = "Snow.dds";
>;
samplerCUBE EnvMap = sampler_state
{
Texture = (EnvironmentMap);
MipFilter = LINEAR;
MinFilter = LINEAR;
MagFilter = LINEAR;
AddressU = Wrap;
AddressV = Wrap;
};
sampler2D Wood;
float4 Main(float2 inTxr: TEXCOORD0,float3 inReflect: TEXCOORD1) : COLOR
{
float4 tmp=texCUBE(EnvMap,inReflect.xyz);
return tmp;
}