Marcin Ignac

Results 287 comments of Marcin Ignac

Another use case for more structured shader code is similarity to shader graph nodes ```javascript module.exports = (node, graph) => { const vec3In = node.in("vec3", [1, 1, 1, 1]); const...

It looks like BabylonJS doesn't care about this kind of issues and have most shaders still in GLSL100 with some in GLSL300.

Another thing to consider is not only how you create the source code but also how you provide all those attributes and uniforms (buffers). In WebGL you have attributes and...

Getters for constituency with eg tex.width

This PR should include docs

Couple of notes: `getMaxPrecision` is one of a kind API (getSomething), what about exposing `capabilities.maxPrecision` and letting the user handle that for now? What would be better `pex-context` way? It...

I feel like we are trying to make things complicated here. In somehow controversial discussions like this one it's useful to think i case of scenarios. From my understanding some...

- [x] inspect filament shaders to see what they are using https://google.github.io/filament/webgl/suzanne.html No checks in GLSL but it doesn't mean they don't do them in JS. As mentioned in docs...

Yes, only `fragmentPrecisionHigh=true/false`. Eg. BabylonJS has `highPrecisionShaderSupported`. This avoids confusion with `maxFragmentPrecision` as `gl.getShaderPrecisionFormat` is precision is not just high/med/low but high with 32 bits or high with 24 bits...