GithubHelp home page GithubHelp logo

oes_texture_float_linear-polyfill's Introduction

OES_texture_float_linear Polyfill

This is a polyfill for the WebGL extension OES_texture_float_linear. Try the live demo to see if the polyfill works for your browser.

OES_texture_float_linear was created to fix a mistake in the implementation of OES_texture_float. Although the spec for OES_texture_float requires that floating-point textures with linear filtering be marked as incomplete, the implementation of OES_texture_float in both Chrome and Firefox allowed linear filtering on floating-point textures. This caused apps that used linear filtering and floating-point textures to break on some mobile platforms that support floating-point textures but not linear filtering.

Upcoming browsers will prevent an app from using linear filtering on floating-point textures unless the app successfully acquires the OES_texture_float_linear extension. However, apps that check for OES_texture_float_linear support will then stop working on current browsers that don't know about OES_texture_float_linear. This polyfill checks if linear filtering works even though OES_texture_float_linear isn't supported.

Usage

<script src="OES_texture_float_linear-polyfill.js"></script>
<script>
var gl = document.createElement('canvas').getContext('experimental-webgl');
document.write('OES_texture_float_linear: ' + !!gl.getExtension('OES_texture_float_linear'));
</script>

References

oes_texture_float_linear-polyfill's People

Contributors

evanw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

vistone livingink

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.