extra textures/ store data?

0 favourites
  • 4 posts
From the Asset Store
Data+ is the best Data Management solution for Construct 3. It contains 4 Addons (Plugin & Behavior).
  • Is it possible to use textures to store data that can be used in a shader for construct2?

    I'd want to read/write to a texture, etc. I know it can be done in glsl, but was wondering if construct 2 prevents this(because you have to set active buffers, etc).

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • C2 doesn't prevent it, it just wasn't designed to do it. This would have to be done by either modifying C2's runtime (which I'd leave to Ashley if it was ever to be added) or run custom webgl from a plugin's drawgl function.

    To do it it would basically just require you to set a uniform after an effect was made active. There isn't a spot you can do that in conjunction with C2's effect rendering code.

    That said you can do anything in the drawgl function in plugins, you just need to restore any webgl state changes before exiting the function. The idea is you'd bypass c2's system for using effects and doing it manually.

  • okay, thanks.. I'll take a look through some plugins and see if I can wrap my head around how to organize it.

  • The only plugin to do custom webgl like that is this one:

    It doesn't replace the shaders, but it does change the vertex data.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)