Code Monkey home page Code Monkey logo

Comments (4)

MennoVink avatar MennoVink commented on August 30, 2024

Technically ffgl does not limit in what kind of opengl context it's being run. It is up to the host to create a context and have it active while processing the plugin.
Resolume creates a 4.1 core context and thus you need to use #version 410 shaders. I have no experience with webgl so i dont know if the driver would be able to load es shaders, it might also depend on which extensions are present.

from ffgl.

wyhinton avatar wyhinton commented on August 30, 2024

I see. So how do you add gl extensions?

from ffgl.

jorisdejong avatar jorisdejong commented on August 30, 2024

The availability of extensions is determined by the GPU manufacturer. Wikipedia explains it better than I can:

In addition to the features required by the core API, graphics processing unit (GPU) vendors may provide additional functionality in the form of extensions. Extensions may introduce new functions and new constants, and may relax or remove restrictions on existing OpenGL functions. Vendors can use extensions to expose custom APIs without needing support from other vendors or the Khronos Group as a whole, which greatly increases the flexibility of OpenGL

To keep it practical, the code you posted will run fine in a 4.1 context using #version 410, provided you have your own vertex shader passing the values for v_positionWithOffset

from ffgl.

MennoVink avatar MennoVink commented on August 30, 2024

GL_ARB_ES2_compatibility, GL_ARB_ES3_1_compatibility and GL_ARB_ES3_compatibility only find widespread support on windows. So yeah it looks like it depends on what your target is. Is there any reason why you wouldn't just port the shader to #version 410?

from ffgl.

Related Issues (20)

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.