Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shader error #158

Open
JianJD opened this issue Sep 20, 2023 · 0 comments
Open

shader error #158

JianJD opened this issue Sep 20, 2023 · 0 comments

Comments

@JianJD
Copy link

JianJD commented Sep 20, 2023

当我用选择工具选择构件时,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: }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant