《WebGL着色器入门(七)绘制形状》的评论 http://cesium.xin/wordpress/archives/glsl-es-webgl-draw-shape.html 学习cesiumjs 的好地方--伐罗密 Tue, 14 Jan 2025 07:53:49 +0000 hourly 1 https://wordpress.org/?v=4.9.26 作者:pengdage110 http://cesium.xin/wordpress/archives/glsl-es-webgl-draw-shape.html#comment-3413 Thu, 12 Jan 2023 03:09:46 +0000 http://cesium.xin/wordpress/?p=3104#comment-3413 float a = atan(st.x,st.y)+PI;
float r = TWO_PI/float(N);
d = cos(floor(.5+a/r)*r-a)*length(st);

这三句真是太难理解了!

]]>