Dec
21
2015

Matrix Playground Shader

matrix_playground_shader_unity

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:
http://www.codinglabs.net/article_world_view_projection_matrix.aspx
http://www.gamedev.net/topic/610115-solved-rotation-deforming-mesh-opengl-es-20/#entry4859756

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

 


3 Comments + Add Comment

Leave a comment

@unitycoder_com

Subscribe to Blog via Email

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