CG programming for non-programmers, lesson 6

For the sixth lesson, we are going to start creating variables.

This will make our shader program much easier to read, because we will be able to do things step by step, since we can store intermediate results along the way.

To do this we will use float variables. These are a very simple kind of variable, because they can only store one number at a time.

You can see this lesson by CLICKING HERE.

2 thoughts on “CG programming for non-programmers, lesson 6”

  1. These are fun — not a non-programmer, but a mostly audio guy who’s always looked at graphics stuff from a distance. Nice little warmups in the morning.

Leave a Reply

Your email address will not be published. Required fields are marked *