LeonardLaszlo / nw.js-armv7-binaries

NW.js ARMv7 and ARMv8 binaries and the scripts for building and running the executable.
145 stars 22 forks source link

Skia shader compilation error #50

Closed prominentdetail closed 2 years ago

prominentdetail commented 2 years ago

I am running an app that uses three.js and I receive these errors when it tries to render. I can't seem to find any answers from anyone why this is occurring. Maybe it is related to nw.js?

` [2122:2122:1101/195735.880642:ERROR:shared_context_state.cc(73)] Skia shader compilation error

version 110

uniform sampler2D uTextureSampler_0_Stage0; varying vec2 vlocalCoord_Stage0; void main() { vec4 outputColor_Stage0 = vec4(1.0); vec2 texCoord; texCoord = vlocalCoord_Stage0; outputColor_Stage0 = texture2D(uTextureSampler_0_Stage0, texCoord); { gl_FragColor = outputColor_Stage0; } }

Errors: 0:1(10): error: GLSL 1.10 is not supported. Supported versions are: 1.00 ES, 3.00 ES, and 3.10 ES `

LeonardLaszlo commented 2 years ago

In my understanding of the error message Skia uses open gl 1.10 features, but the only supported versions are: 1.00 ES, 3.00 ES, and 3.10 ES I am afraid there is not much we can do on nw.js side in order to fix this.

prominentdetail commented 2 years ago

Okay, thanks for the help. I'll try to prod the three.js community for more info.