Idea for a function to load shaders.

About Monkey 2 Forums Monkey 2 Development Idea for a function to load shaders.

This topic contains 3 replies, has 3 voices, and was last updated by  cocon 2 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4490

    cocon
    Participant

    Initially I created this for an OpenGL example, perhaps this could go into mojo.graphics.glutil since it’s pretty reusable code.

     

    #4494

    Mark Sibly
    Keymaster

    The glutil stuff wasn’t really meant to be ‘public’, but it would definitely be nice to have.

    Let me clean it up a bit, perhaps move it to GLES20 module(?) etc, then we can start adding fun stuff to it.

    #4509

    AdamStrange
    Participant

    Mark… Further to this:

    I noticed the general rendering of mojo is opengl to a buffer then final shader to screen.

    Is there a possibility of opening this shader up so added ‘screen’ shader could be created. E.G. blurs, color to mono, etc

    Just a thought 😉

    #4512

    cocon
    Participant

     

    On what Adam said, it would be very interesting to use custom user shaders at will. It reminds me of Minecraft where is heavily modded on shaders, beyond any initial plan. I think that this gets closer to a material/shader system (like Unity does).

    Here is now a silly hack to make it work, theoretically it should work, but I have not compiled it yet.

    In the file mojo.graphics.canvas

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.