有一个错误... 当我渲染多个模型的时候,我发现我赋予模型的Shader出现了问题!
最后找到了原因:
I find a error... i set some unlike shades to these models when render three models。
take 2 hour... I changed two lines code ,that's ok。
在 HMObject.cs
if(this is IHMChildRenderer) ((IHMChildRenderer)this).RenderChildren(myDevice);
if(this is IHMHasMaterial) ((IHMHasMaterial)this).SetMaterialProperties();
改为
if(this is IHMHasMaterial) ((IHMHasMaterial)this).SetMaterialProperties();
if(this is IHMChildRenderer) ((IHMChildRenderer)this).RenderChildren(myDevice);
sorry for my English
