Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 1.36 KB

README.md

File metadata and controls

21 lines (13 loc) · 1.36 KB

custom-vertex-shader-texture

Custom vertex shader and fragment shader with loaded texture which can used in any javascript framework and texture can load any images

You can specify two different types of shaders for each material:

  • The vertex shader runs first; it receives attributes, calculates / manipulates the position of each individual vertex, and passes additional data (varyings) to the fragment shader.
  • The fragment ( or pixel ) shader runs second; it sets the color of each individual "fragment" (pixel) rendered to the screen.

  • Noise
  • Noise is an indispensable tool for creative coding. We use it to generate all kinds of organic effects like clouds, landscapes and contours. Or to move and distort objects with a more lifelike behaviour.

  • UV

  • UVs are two-dimensional texture coordinates that correspond with the vertex information for your geometry. UVs are vital because they provide the link between a surface mesh and how an image texture gets applied onto that surface.
  • To know more about UV got to this link https://www.pluralsight.com/blog/film-games/understanding-uvs-love-them-or-hate-them-theyre-essential-to-know