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

..--

CalcColor.vshD21-Apr-20241.6 KiB4436

CalcHemisphereLighting.vshD21-Apr-20241.4 KiB3128

MultiplyShader.csdrD21-Apr-202417.8 KiB9797

ReadMe.txtD21-Apr-20242 KiB5340

ShaderConfig.hD21-Apr-20241.3 KiB365

build.batD21-Apr-20243.5 KiB2319

ReadMe.txt

1======================================================================
2 MultiplyShader
3                                                           2010/12/14
4======================================================================
5
6======================================================================
7 Specifications
8======================================================================
9MultiplyShader 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======================================================================
43Use MultiplyShader.csdr by binding it to the model as a user-shader.
44
45If you have overwritten the shader, use build.bat to create shader binary (MultiplyShader.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・MultiplyShader may change without notice.
53