webGL中坡度坡向分析报错

1 投票
Fragment shader translation failed.

VM257:1 An error occurred while rendering.  Rendering has stopped.
undefined
RuntimeError: Fragment shader failed to compile.  Compile log: ERROR: 0:650: 'realNormal' : undeclared identifier
WARNING: 0:650: 'normalize' : operation result is undefined for the values passed in
ERROR: 0:650: 'z' :  field selection requires structure or vector on left hand side
ERROR: 0:665: 'realNormal' : undeclared identifier
ERROR: 0:665: 'ComputeSlopeArrowColor' : no matching overloaded function found
ERROR: 0:665: '=' : dimension mismatch
ERROR: 0:665: '=' : cannot convert from 'const mediump float' to 'highp 4-component vector of float'
ERROR: 0:670: 'realNormal' : undeclared identifier
ERROR: 0:670: 'ComputeSlopeArrowColor' : no matching overloaded function found
ERROR: 0:670: '=' : dimension mismatch
ERROR: 0:670: '=' : cannot convert from 'const mediump float' to 'highp 4-component vector of float'
7月 21, 2020 分类:  388次浏览 | 用户: Marry 初出茅庐 (68 分)

1个回答

0 投票
您好,方便将您的数据和完整代码通过私信发给我吗,我这边为您测试一下。
7月 21, 2020 用户: KeineAhnung 名扬四海 (1,542 分)
保密项目不方便呢
那您看看您的数据在生成TIN地形缓存的时候是否勾选了“带法线”这一选项。
...