Ejemplo n.º 1
0
 public ILLitBorderedShape(ILPanel panel, int numVertices)
     : base(panel, numVertices)
 {
     if (!VertexDefinition.StoresNormals)
     {
         throw new ILInvalidOperationException("The generic vertex type does not support ligthing operations. Choose a vertext type which is able to store individual normal vectors!");
     }
     m_autoNormals     = true;
     m_material        = new ILMaterial();
     m_mustCalcNormals = true;
 }
Ejemplo n.º 2
0
 private void create()
 {
     if (VerticesPerShape > 2)
     {
         m_autoNormals = true;
     }
     else
     {
         m_autoNormals = false;
     }
     m_oldCameraPosition = ILPoint3Df.Empty;
     m_material          = new ILMaterial();
 }