<li><aclass="backlink"title="Click to do a full-text search for this title"href="./ArtReference_Q4Shaders?action=fullsearch&value=linkto%3A%22ArtReference+Q4Shaders%22&context=180">ArtReference Q4Shaders</a></li>
<spanclass="anchor"id="line-2"></span><spanclass="anchor"id="line-3"></span><pclass="line862">In this document, we’re going to go over basic shader issues and definitions, how to write them as well as what you can and can’t do with shaders. I’ll be going over mostly basics, i.e.: getting things in game issues. <strong>Materials</strong> are the same as <strong>Shaders</strong>, and the term is used interchangeably throughout the Quake 4 SDK. <spanclass="anchor"id="line-4"></span><spanclass="anchor"id="line-5"></span><pclass="line867"><strong>In this document you will find:</strong><spanclass="anchor"id="line-6"></span><ul><li><pclass="line891"><strong>Section 1</strong>: <ahref="./ArtReference_Q4Shaders_Definitions.html">Definitions</a><spanclass="anchor"id="line-7"></span></li><li><pclass="line891"><strong>Section 2</strong>: <ahref="./ArtReference_Q4Shaders_Textures.html">How to write a shader for textures (longhand)</a><spanclass="anchor"id="line-8"></span></li><li><pclass="line891"><strong>Section 3</strong>: <ahref="./ArtReference_Q4Shaders_Guides.html">Texture Guides</a><spanclass="anchor"id="line-9"></span></li><li><pclass="line891"><strong>Section 4</strong>: <ahref="./ArtReference_Q4Shaders_Models.html">How to write a shader for models</a><spanclass="anchor"id="line-10"></span></li><li><pclass="line891"><strong>Section 5</strong>: <ahref="./ArtReference_Q4Shaders_SkinFiles.html">.skin files</a><spanclass="anchor"id="line-11"></span></li><li><pclass="line891"><strong>Section 6</strong>: <ahref="./ArtReference_Q4Shaders_Extra_Passes.html">Extra passes, additive and alpha</a><spanclass="anchor"id="line-12"></span></li><li><pclass="line891"><strong>Section 7</strong>: <ahref="./ArtReference_Q4Shaders_Tables.html">Modulation with tables</a><spanclass="anchor"id="line-13"></span></li><li><pclass="line891"><strong>Section 8</strong>: <ahref="./ArtReference_Q4Shaders_AnimatedStrips.html">Special Case:Animated shaders</a><spanclass="anchor"id="line-14"></span><spanclass="anchor"id="line-15"></span></li></ul><pclass="line874">Please understand that this document covers the bare-bones of the shader system. Fortunately, the bare-bones is sufficient for a lot of what the artist needs to do and it’s the basics that can lead to more complex shaders. <spanclass="anchor"id="line-16"></span><spanclass="anchor"id="line-17"></span><pclass="line867"><hr/><pclass="line874"><spanclass="anchor"id="line-18"></span><spanclass="anchor"id="line-19"></span><pclass="line867">
<spanclass="anchor"id="line-20"></span><spanclass="anchor"id="line-21"></span><pclass="line874">Troubleshooting shaders can be a little bit like finding a needled in a haystack. Unfortunately, I can’t go through every instance of what can happen, because this document would be immense. So I’ll go over some stuff to look for in a shader: <spanclass="anchor"id="line-22"></span><spanclass="anchor"id="line-23"></span><oltype="1"><li>Make sure all of your shader passes have an open and close brace. <spanclass="anchor"id="line-24"></span><spanclass="anchor"id="line-25"></span></li><liclass="gap">Check your spelling <spanclass="anchor"id="line-26"></span><spanclass="anchor"id="line-27"></span></li><liclass="gap">Check your path names. <spanclass="anchor"id="line-28"></span><spanclass="anchor"id="line-29"></span><oltype="i"><li>Make sure path names don’t have spaces. <spanclass="anchor"id="line-30"></span><spanclass="anchor"id="line-31"></span></li><liclass="gap">Make sure the path actually exists. <spanclass="anchor"id="line-32"></span><spanclass="anchor"id="line-33"></span></li></ol></li></ol><pclass="line874">The key to learning the shaders is experimenting, so the best thing to do is dive into the deep end and see what you get. <spanclass="anchor"id="line-34"></span><spanclass="anchor"id="bottom"></span></div><pid="pageinfo"class="info"lang="en"dir="ltr">ArtReference Q4Shaders (last edited 2005-11-09 20:30:30 by <spantitle="MattVainio @ 67.129.250.254[67.129.250.254]"><aclass="nonexistent"href="./MattVainio.html"title="MattVainio @ 67.129.250.254[67.129.250.254]">MattVainio</a></span>)</p>
<li><ahref="http://moinmoin.wikiwikiweb.de/">MoinMoin Powered</a></li><li><ahref="http://www.python.org/">Python Powered</a></li><li><ahref="http://validator.w3.org/check?uri=referer">Valid HTML 4.01</a></li>