• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

CalcColor.vshD20-Nov-20181.6 KiB4436

CalcHemisphereLighting.vshD20-Nov-20181.5 KiB3431

JShader.csdrD20-Nov-201817.8 KiB9797

ReadMe.txtD20-Nov-20182 KiB5340

ShaderConfig.hD20-Nov-20181.3 KiB365

build.batD20-Nov-20183.5 KiB2319

ReadMe.txt

1======================================================================
2 JShader
3                                                           2010/11/30
4======================================================================
5
6======================================================================
7 Specifications
8======================================================================
9JShader  is a sample vertex shader.
10
11Shading performs the following color processing.
12
13----------------------------------------------------------------------
14
15- Vertex color present
16-- RGB
17Hemispherical light x Vertex color
18Note: The vertex color is output if there is no hemispherical light.
19(The value of the hemispherical light is 1.)
20Note: You can also make everything completely black by setting the hemispherical light color to 0.
21
22-- A
23Vertex alpha (when present)
241 (opaque when not present)
25
26----------------------------------------------------------------------
27
28- Vertex color absent
29-- RGB
30Hemispherical light x 1
31Note: A fixed value is used if there is no hemispherical light (1 x 1 results in white)
32Note: This is not applied to the material color (diffuse or ambient).
33
34- A
35Vertex alpha (when present)
361 (opaque when not present)
37
38----------------------------------------------------------------------
39
40======================================================================
41 Using the Tool
42======================================================================
43Bind JShader.csdr to the model ahead of time as a user-shader.
44
45If you have overwritten the shader, use build.bat to create a shader binary (JShader.shbin) referencing the environment variables CTRSDK_ROOT and NW4C_ROOT.
46Create intermediate files to be used using the CreativeStudio shader creation panel.
47
48======================================================================
49 Notes
50======================================================================
51- Overwriting the shader for use is essentially unsupported.
52- JShader may change without notice.
53