记录修改shader和cesium版本迭代替换的一些变量函数。
czm_phong
1.5x 之前
gl_FragColor = czm_phong(normalize(positionToEyeEC), material)
1.6x 之后
gl_FragColor = czm_phong(normalize(positionToEyeEC), material, lightDirectionEC)
czm_ellipsoidInverseRadii
1.5x 之前
float ellipsoidSurfaceFunction(czm_ellipsoid ellipsoid, vec3 point)
{
vec3 scaled = ellipsoid.inverseRadii * point;
return dot(scaled, scaled) - 1.0;
}
1.6x 之后
float ellipsoidSurfaceFunction(vec3 point)
{
vec3 scaled = czm_ellipsoidInverseRadii * point;
return dot(scaled, scaled) - 1.0;
}