Visualizes a vertex attribute by displaying it as a color for debugging.
Components for well-known unit-length vectors, i.e., normal,
binormal, and tangent, are scaled and biased
from [-1.0, 1.0] to (-1.0, 1.0).
alias DebugAppearance
- The options object takes the following properties
- {String} options.attributeName The name of the attribute to visualize.
- {String} [options.glslDatatype='vec3'] The GLSL datatype of the attribute. Supported datatypes are float, vec2, vec3, and vec4.
- {String} [options.vertexShaderSource] Optional GLSL vertex shader source to override the default vertex shader.
- {String} [options.fragmentShaderSource] Optional GLSL fragment shader source to override the default fragment shader.
- {RenderState} [options.renderState] Optional render state to override the default render state.
exception {DeveloperError} options.glslDatatype must be float, vec2, vec3, or vec4.
Visualizes a vertex attribute by displaying it as a color for debugging.
Components for well-known unit-length vectors, i.e.,
normal
,binormal
, andtangent
, are scaled and biased from [-1.0, 1.0] to (-1.0, 1.0).alias DebugAppearance
- The options object takes the following properties - {String} options.attributeName The name of the attribute to visualize. - {String} [options.glslDatatype='vec3'] The GLSL datatype of the attribute. Supported datatypes are
float
,vec2
,vec3
, andvec4
. - {String} [options.vertexShaderSource] Optional GLSL vertex shader source to override the default vertex shader. - {String} [options.fragmentShaderSource] Optional GLSL fragment shader source to override the default fragment shader. - {RenderState} [options.renderState] Optional render state to override the default render state.exception {DeveloperError} options.glslDatatype must be float, vec2, vec3, or vec4.
var primitive = new Cesium.Primitive({ geometryInstances : // ... appearance : new Cesium.DebugAppearance({ attributeName : 'normal' }) });