Three.js: example shaders not compatible with WebGL2

Created on 21 Jun 2019  路  3Comments  路  Source: mrdoob/three.js

Out of curiosity I have tried running the examples using a WebGL2 context, several fail. The most common problem is the use of ShaderMaterials with a uniform 'texture' which conflicts with the GLSL ES 3.0 texture() function (easily fixed by renaming the uniform of course).

I think it would be good if examples avoided this issue, given the confusion that may occur if/when examples are used as the basis for other's code.

Thoughts?

Examples

Most helpful comment

I'll sort them out shortly

All 3 comments

GPUComputationRenderer.js is guilty here.

Yeah, we should definitely clean that up.

I'll sort them out shortly

Was this page helpful?
0 / 5 - 0 ratings