HLSL错误:x3206 implicit trucation of vector type
今天在两处出现了这个问题:float3 ambient = gMtrl.ambient*gSpotLight.ambient;//环境光oPosLight = mul( oPosW, gViewToLightProj );检查了一下发现是维度问题..ambient是float3类型,gMtrl.ambient是float4类型;oPosLight是float4类型,oPos
原创
2012-05-21 14:36:20 ·
5082 阅读 ·
0 评论