通过显示顶点属性作为调试的颜色来视觉.
Components for well-known unit-length vectors, i.e., normal,
NT+0 tangent NT+1 ,和 NT+2 bitangent NT+3 ,都是缩放和偏颇的
from [-1.0, 1.0] to (-1.0, 1.0).
| Name | Type | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
下列属性的对象 :
|
Throws:
-
DeveloperError : options.glslDatatype must be float, vec2, vec3, or vec4.
Example:
const primitive = new Cesium.Primitive({
geometryInstances : // ...
appearance : new Cesium.DebugAppearance({
attributeName : 'normal'
})
});
Members
属性名称被可视化.
当 NT 0 real NT 1 时,几何学有望关闭.
-
Default Value:
false
The GLSL source code for the fragment shader. The full fragment shader
source is built procedurally taking into account the
DebugAppearance#material.
使用 DebugAppearance#getFragmentShaderSource 获得完整来源.
正在可视化属性的 GLSL 数据类型.
material : Material
This property is part of the
Appearance interface, but is not
由于使用了完全自定义的片段遮蔽器,故由 DebugAppearance 使用.
-
Default Value:
undefined
The WebGL fixed-function state to use when rendering the geometry.
当
ret 时,几何形似半透明.
-
Default Value:
false
顶点遮蔽器的 GLSL 源代码.
Methods
Returns the full GLSL fragment shader source, which for
DebugAppearance is just
DebugAppearance#fragmentShaderSource.
Returns:
The full GLSL fragment shader source.
创建渲染状态。 这不是最终的州法院;相反,
它可以包含一个子集,与渲染状态相同的渲染状态属性
在上下文中创建.
Returns:
铸造状态.
确定以
DebugAppearance#translucent 为基础的几何是否半透明.
Returns:
如果外观为半透明,则使用#
真 .