Marcin Ignac
Marcin Ignac
Good thing is all old examples will throw "unknown attribute" if we try to set e.g. offset https://github.com/pex-gl/pex-renderer/blob/master/geometry.js#L111 That will be easy to spot and fix instead of silent errors.
To complicate things glTF uses `TRANSLATION`, `ROTATION`, and `SCALE` in [EXT_mesh_gpu_instancing](https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_mesh_gpu_instancing) and doesn't support color or material properties as of today.
What's the default parameters support in the browsers? When would you call `geometry.set(null)` ?
https://github.com/pex-gl/pex-renderer/tree/master/local_modules/glsl-atmosphere
Discussion in AFrame repo https://github.com/aframevr/aframe/pull/3757
ThreeJS has this still unsolved as of March 2019 [Editor: all colors/textures washed out in r102](https://github.com/mrdoob/three.js/issues/15903) > I'd like to see this eventually be implicitly part of THREE.Color, perhaps with...
Babylon js has [useScalarInLinearSpace](https://github.com/BabylonJS/Babylon.js/blob/master/dist/previous%20releases/babylon.2.5.d.ts#L4864) but can't find any docs on it.
Current thinking. Assume float rgba array colors `[r, g, b, a]` are linear. Assume html hex colors `#FFDD33` are gamma Assume byte 0.255 rgba array colors `[rByte, gByte, bByte, aByte]`...
Filament is most clear in the [docs](https://google.github.io/filament/Materials.html#handlingcolors) 👍 `baseColor` - Pre-multiplied linear RGB #### About linear RGB > Several material model properties expect RGB colors. Filament materials use RGB colors...
> What about vertex colors? They should be linear https://github.com/KhronosGroup/glTF/issues/1638