xeokit/xeokit-bim-viewer

shader error

JianJD opened this issue · 0 comments

JianJD commented

当我用选择工具选择构件时,shader报错了
When I used the selection tool to select components, the shader reported an error

xeokit-bim-viewer.min.es.js:1 Fragment shader failed to compile

ERROR: 0:12: 'varying' : Illegal use of reserved word

1: #version 300 es
2: // Triangles dataTexture draw fragment shader
3: #ifdef GL_FRAGMENT_PRECISION_HIGH
4: precision highp float;
5: precision highp int;
6: #else
7: precision mediump float;
8: precision mediump int;
9: #endif
10: in float isPerspective;
11: uniform float logDepthBufFC;
12: varying float vFragDepth;
13: uniform vec4 color;
14: out vec4 outColor;
15: void main(void) {
16: gl_FragDepth = log2( vFragDepth ) * logDepthBufFC * 0.5;
17: outColor = color;
18: }