webgl-float-texture-support

1.0.0 • Public • Published

webgl-float-texture-support

Most browsers today advertise the presence of the WebGL 1 float texture extension (known as 'OES_float_texture' extension), but in reality don't support it, or support only very specific use cases only. Usually it is due to hardware limitations. This module allows you to check the full support of WebGL 1 float textures extension.

Installation and usage

Using NodeJS

Install with the folowing command

npm install webgl-check-float-texture-support --save

You can then use the module any way you want to

// ES5 require
const WebGLFloatTextureSupport = require("webgl-float-texture-support");
 
// ES6 import
import WebGLFloatTextureSupport from "webgl-float-texture-support";
 
let floatTexturesSupported = WebGLFloatTextureSupport.check();
 
...

For direct browser use

Copy the webgl-float-texture-support.js file to your script directory, then use the script in your page

<body>
  <script src="./js/webgl-float-texture-support.js"></script> 
  
  <script>
    let floatTexturesSupported = WebGLFloatTextureSupport.check();
    
    ...
  </script> 
</body>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    4

Package Sidebar

Install

npm i webgl-float-texture-support

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

6.73 kB

Total Files

4

Last publish

Collaborators

  • mcgode