Quiz 22

Today

  1. How do you integrate written shaders in threejs? And is there somewhere with documentation on GLSL syntax?

    Great questions! Here's a partial answer:

    Water Shader:

    Unfortunately, the shader itself isn't well documented, though there are some links at the top that may prove helpful.

    GLSL

    Probably best to start with the Wikipedia page on OpenGL Shading Language

  2. Is there an example for what the shader looks like in the last example? Or is that the shader for the blueish square?

    We'll cover this today. Here's a preview:

    Phong Sphere