Rex引擎原理分析(九十一)晕眩图制作及其实现
发布时间
阅读量:
阅读量
目标:(七十八)中的问题152
先上效果图:

主要思路是:对于不同高度范围的高程区域采用不同颜色进行编码处理,在现有REX引擎架构中必须对现有REX引擎中的片段着色器结构进行优化调整。其中默认使用的片段着色器结构是这样的(见[osgEarth的Rex引擎原理分析(五十四)rex引擎默认的几个着色器功能分析](
#version 330 compatibility
#pragma vp_name VP Fragment Shader Main
#extension GL_ARB_gpu_shader5 : enable
// Fragment output
out vec4 vp_FragColor;
// Fragment stage inputs:
in VP_PerVertex {
float oe_layer_rangeOpacity;
float oe_rex_morphFactor;
全部评论 (0)
还没有任何评论哟~
