====================================================================== JShader 2010/11/30 ====================================================================== ====================================================================== Specifications ====================================================================== JShader is a sample vertex shader. Shading performs the following color processing. ---------------------------------------------------------------------- - Vertex color present -- RGB Hemispherical light x Vertex color Note: The vertex color is output if there is no hemispherical light. (The value of the hemispherical light is 1.) Note: You can also make everything completely black by setting the hemispherical light color to 0. -- A Vertex alpha (when present) 1 (opaque when not present) ---------------------------------------------------------------------- - Vertex color absent -- RGB Hemispherical light x 1 Note: A fixed value is used if there is no hemispherical light (1 x 1 results in white) Note: This is not applied to the material color (diffuse or ambient). - A Vertex alpha (when present) 1 (opaque when not present) ---------------------------------------------------------------------- ====================================================================== Using the Tool ====================================================================== Bind JShader.csdr to the model ahead of time as a user-shader. If you have overwritten the shader, use build.bat to create a shader binary (JShader.shbin) referencing the environment variables CTRSDK_ROOT and NW4C_ROOT. Create intermediate files to be used using the CreativeStudio shader creation panel. ====================================================================== Notes ====================================================================== - Overwriting the shader for use is essentially unsupported. - JShader may change without notice.