Matrix Playground Shader


Finally decided to try shader matrices.. (because having issues with custom billboard shader)

Doing Translate, Scale, Rotations with matrix operations seems quite simple actually!

Would had been totally lost without these two links:

How to use the shader:
– Get the source below, copy to your project
– Create new material, assign this shader to that material
– Create default box 3D object, assign the material to that
– Try adjusting the shader values on that material

Current shader source: *Annoying how github gist breaks the formatting.. click the filename below the source to view in github


2 Comments + Add Comment

  • Is it possible to combine this shader with the unity 5 standard shader?
    I could get all of the properties in the shader, but don’t know where to put the structs anf v2f vert function, I guess it should be placed in one of the cginc files.

Leave a comment


Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.