Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以在 XNA 中创建点光源而无需编写自定义着色器(因为 WP7 不支持这一点),只使用来自基本效果的定向光。
有没有人试过这个?
这是可能的,但它不会投下阴影。可以通过编辑 DirectionalLight# 属性在 BasicEffect 中创建灯光。您还可以使用 BasicEffect.enableDefaultLightning() 来快速创建灯光。