osgEarth的Rex引擎原理研究(九十七) Rex引擎绘制等高线的方法
发布时间
阅读量:
阅读量
目标:(八十八)中的问题170
1、思路:对处于同一高度的点采用一致的色彩进行标注。
2、效果图:

3、GLSL代码:
#version $GLSL_VERSION_STR
$GLSL_DEFAULT_PRECISION_FLOAT
#pragma vp_name REX Engine - Fragment
#pragma vp_entryPoint elevation_last_frag
#pragma vp_location fragment_coloring
#pragma vp_order 0.9
//tile coordinate
vec4 oe_layer_tilec;
// SDK functions:
float oe_terrain_getElevation();
float linearstep(float edge0, float edge1, float x
全部评论 (0)
还没有任何评论哟~
