jfcameron / gdk-graphics

3D Rendering using OpenGLES 2.0/WebGL1.0. Platforms: Linux, Windows, Mac, x86 64bit, arm64, wasm
MIT License
1 stars 1 forks source link

webgl: depth buffer attachment extension support #57

Open jfcameron opened 3 years ago

jfcameron commented 3 years ago

currently this extension is not activated on webgl, this means texture_camera's depth buffers cannot have textures attached to them.

detect if the device supports it, enable if it does, otherwise write to a common area and react accordingly.

related to #43 related to #44