Ogre 贴图所有为黑色

Ogre 贴图全部为黑色
Your material has lighting enabled (it's the default if you don't add "lighting off" to the pass). Does your quad have correct normals added to each vertex and a lightsource in front of it?
With lighting on but no normals on a mesh, it will appear black.


就是默认.mertial文件里是,把灯光打开的,你要手动关掉。手动修改mertial文件

material MyMaterial1
{
  technique
  {
      pass
      {
          lighting off
          texture_unit
          {
              texture leaf.png
          }
      }
  }
}