var obj = {
id: "Skyline",
name: 'czm_skylinetemp',
//fragmentShader 细绳 uniform着色器对象
fragmentShader: 'uniform sampler2D colorTexture;' +
'uniform sampler2D depthTexture;' +
'varying vec2 v_textureCoordinates;' +
'void main(void)' +
'{' +
'float depth = czm_readDepth(depthTexture, v_textureCoordinates);' +
'vec4 color = texture2D(colorTexture, v_textureCoordinates);' +
'if(depth<1.0 - 0.000001){' +
'gl_FragColor = color;' +
'}' +
'else{' +
'gl_FragColor = vec4(1.0,0.0,0.0,1.0);' +
'}' +
'}',
url: "http://earthsdk.com/v/last/Apps/assets/dayanta/tileset.json", //加载大雁塔倾斜模型数据
position: [114.0595, 22.539, 10],
heading: 0, // 方位角(heading)
pitch: 0, // 俯仰角(pitch) 旋转角度
roll: 360, // 滚动角(roll)
destination:[114.0595, 22.539, 50],//相机视角
orientation: {
heading : 0.0,
pitch : 0.0,