椭球表面上的几何外观,例如
       
        
      
         PolygonGeometry
        
       
       和
       
        
         RectangleGeometry
        
       
       ,它们支持所有材料,例如
       
        
         MaterialAppearance
        
       
       使用
       
        MaterialAppearance.MaterialSupport.ALL
       
       。但是,这种外观要求更少的顶点属性,因为片段着色器可以按程序计算
       
        normal
       
       ,
       
        tangent
       
       和
       
        bitangent
       
       。
      | Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 
           options
           | Object | 可选
          
          具有以下属性的对象: 
 | 
Example:
var primitive = new Cesium.Primitive({
  geometryInstances : new Cesium.GeometryInstance({
    geometry : new Cesium.PolygonGeometry({
      vertexFormat : Cesium.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
      // ...
    })
  }),
  appearance : new Cesium.EllipsoidSurfaceAppearance({
    material : Cesium.Material.fromType('Stripe')
  })
});See:
Members
static constant Cesium.EllipsoidSurfaceAppearance.VERTEX_FORMAT : VertexFormat
      如果为
      
     
       true
      
      ,则该几何体应位于椭球体上表面-并非在其上方保持恒定高度-因此
      
       
        EllipsoidSurfaceAppearance#renderState
       
      
      已启用背面剔除。
     - 
      
       Default Value:
      
      
       false
      
     
      如果
      
     
       true
      
      ,则几何将被关闭,因此
      
       
        EllipsoidSurfaceAppearance#renderState
       
      
      启用了背面剔除。如果查看者输入了几何图形,则它将不可见。
     - 
      
       Default Value:
      
      
       false
      
     
      如果为
      
     
       true
      
      ,则片段着色器将翻转表面法线根据需要确保法线面向观看者以避免黑点。当几何图形的两边都应为阴影像
      
       
        WallGeometry
       
      
      一样。
     - 
      
       Default Value:
      
      
       true
      
     
      如果为
      
     
       true
      
      ,则在片段着色器中使用平面阴影,这意味着不考虑照明。
     - 
      
       Default Value:
      
      
       false
      
     
      片段着色器的GLSL源代码。完整片段着色器源代码是根据程序
      
       
     
        EllipsoidSurfaceAppearance#material
       
      
      进行构建的,
      
       
        EllipsoidSurfaceAppearance#flat
       
      
      和
      
       
        EllipsoidSurfaceAppearance#faceForward
       
      
      。使用
      
       
        EllipsoidSurfaceAppearance#getFragmentShaderSource
       
      
      可获得完整的源代码。
     material : Material
      用于确定片段颜色的材料。与其他
      
       
     
        EllipsoidSurfaceAppearance
       
      
      不同属性,这不是只读的,因此外观的材质可以随时更改。
     - 
      
       Default Value:
      
      
       
        
         Material.ColorType
        
       
      
      See:
      渲染几何体时要使用的WebGL固定功能状态。
      
     
       构造
       
        
         EllipsoidSurfaceAppearance
        
       
       时,可以显式定义渲染状态。实例,或者通过
       
        
         EllipsoidSurfaceAppearance#translucent
        
       
       进行隐式设置和
       
        
        
         EllipsoidSurfaceAppearance#aboveGround
        
       
       。
      
      如果为
      
     
       true
      
      ,则几何图形应显示为半透明。
     - 
      
       Default Value:
      
      
       true
      
     readonly vertexFormat : VertexFormat
      此外观实例与
      
       
     
        VertexFormat
       
      
      兼容。几何可以具有更多的顶点属性,但仍然兼容-潜在的性能成本-但不能少。
     - 
      
       Default Value:
      
      
       
        
         EllipsoidSurfaceAppearance.VERTEX_FORMAT
        
       
      
     
      顶点着色器的GLSL源代码。
     
     Methods
      程序上创建完整的GLSL片段着色器源。对于
      
       
     
        EllipsoidSurfaceAppearance
       
      
      ,这是从
      
       
        EllipsoidSurfaceAppearance#fragmentShaderSource
       
      
      ,
      
       
        EllipsoidSurfaceAppearance#flat < /code>
       
      
      ,和
      
       
        EllipsoidSurfaceAppearance#faceForward
       
      
      。
     Returns:
   完整的GLSL片段着色器源。
  
 
     
      创建一个渲染状态。这不是最终的渲染状态实例;代替,它可以包含与渲染状态相同的渲染状态属性的子集在上下文中创建。
     
     Returns:
   渲染状态。
  
 
     Returns:
    真正
   
   如果外观是半透明的。
  