=============================== NSI Shader System Documentation =============================== Notes ----- - Shader files use the ".nsa" extension (Nihilistic Shader Archive) - Shader files must be stored in the "Materials\" directory - Shader filenames must be listed in "Materials\shaderlist.txt" to be loaded - Shader filenames must corespond to a directory name for editor compatibility. e.g.: "Materials\metal.nsa" specifies shaders in the "Materials\metal" directory Shader Format ------------- shadername { parameters ... } Parameters ---------- Editor Only Parameters: qer_nocarve qer_trans qer_editorimage qer_description qer_light_intensity qer_light_color qer_light_image qer_surfaceparm noDraw noMarks noLightmap noLightblock noMipmap noCull vertexLight nonSolid playerClip aiClip cameraClip decal sky slick mirror skip water terrain trans General Parameters: surfflag 0x0001 (TWo Sided) 0x0002 (No Marks) 0x0004 (No Shadow) 0x0008 (No Draw) Shader Types/Parameters: 4bit Alpha ---------- shader alpha texture 1bit Alpha ---------- shader masked texture Terrain ------- shader terrain texture detail detailscale detail2 detail2scale cloudmap cloudscale cloudspeed Detail/Macro ------------ shader detail texture detail detailscale Environment Map --------------- shader envmap texture envmap intensity Gloss Map -------- shader glossenvmap texture envmap intensity Glass ----- shader glass texture envmap alpha Etched Glass ------------ shader etchedglass texture envmap glossmap Glow ---- shader glow texture glow intensity Keyhole ------- shader keyhole texture glow Scanline -------- shader scanline texture envmap detail detailscale speed reflect Add Blend --------- shader add texture lightstyle Fullbright ---------- shader fullbright texture Water ----- shader water texture envmap texturescale alpha reflect Blend ----- shader blend texture texture2 blendfactor