Commits

Jason McKesson committed 84960c2

Added a comment about non-uniform transformation.

Comments (0)

Files changed (1)

Documents/Illumination/Tutorial 08.xml

 glUseProgram(0);</programlisting>
         </example>
         <para>It's pretty self-explanatory.</para>
+        <para>One more thing to note before we move on. Doing the inverse-transpose is only really
+            necessary if you are using a <emphasis>non-uniform</emphasis> scale. In practice, it's
+            actually somewhat rare to use this kind of scale factor. We do it in these tutorials, so
+            that it is easier to build models from simple geometric components. But when you have an
+            actual modeller creating objects for a specific purpose, non-uniform scales generally
+            are not used. It's better to just get the modeller to adjust the model as needed.</para>
+        <para>Uniform scales are commonly used. So you still need to normalize the normal after
+            transforming it with the model-to-camera matrix.</para>
     </section>
     <section>
         <title>Interreflection</title>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.