Skip to content

Improved boilerplate on new shaders #10

@Bug-Reaper

Description

@Bug-Reaper

Finally learned enough GLSL and THREE-flavored GLSL to be dangerous!

Went to port over some of my shader-toys and from what I remember the process went something like this.

  1. Created a new shader.
  2. Struggled a bit to hook up some of the usual varyings like vNormal/vPosition/vUv etc....
  3. Couln't figure out how to add iTime.
  4. Bailed lol.

I think some upgraded default boilerplate is gonna go a long way for easier adoption:

  1. Add in all of the default available varyings through threejs vNormal, vPosition, vUv, the vertexColor one. Doesn't have to use all of them per say but just have them declared in the default vertex/frag shaders.
  2. Add a default iTime or iTime equivelant.

As always look up to your stuff Andrew, loved the parrallax demo of recent and can't wait to make some dank frogs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions