OpenGL GLSL simple shader example

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,011
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 19, 2009

I've started learning GLSL. This is basic shader example - quite interesting and psychodelic teapod. Vertex shader is modyfing position using sin function. Fragment shader is applying color depending on position and normal vector.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (MrZaus)

  • If only I could find it now... ;]

see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • can you post the code?

  • using sin as a product of time for vertex position?

    Try using cos as a product of the vertex position (after translation) for some cool color changing!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more