Teaching myself GLSL shaders

About Monkey 2 Forums Monkey 2 Programming Help Teaching myself GLSL shaders

Tagged: ,

This topic contains 0 replies, has 1 voice, and was last updated by  Ethernaut 1 year, 7 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10517

    Ethernaut
    Participant

    So I finally started learning GLSL. The best resource I’ve found so far is this (still incomplete) amazing interactive book: https://thebookofshaders.com

    I’ve been converting the examples in the book to work with Monkey2:
    https://github.com/DoctorWhoof/Mojo-Shader-Tests

    It started pretty well, but I stopped in example #7 when I tried to make a shader that works in 3D. I get no errors, but nothing displays either… switching the material to a PbrMaterial displays fine, so it’s definitely either the shader or the TestMaterial class. I was hoping for a very simple “unlit” shader just to begin with. What am I missing?

    My second question is: where can I find any reference on what the Mojo’s render passes are? I’m ignoring them for now… maybe that’s where the problem is?

    Here’s the M2 code:

    And here’s the shader. I made the color a simple red just to test it.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.