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 Responses to “CG programming for non-programmers, lesson 6”

  1. Bg Porter says:

    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.

  2. admin says:

    That’s great to hear. Thanks for the positive feedback!

Leave a Reply