$(NW4C_ROOT)\SampleData\Graphics\Shader\UserShader.| Files to copy | Rename as |
|---|---|
| gfx_DefaultShader0.vsh | gfx_UserShader0.vsh |
| gfx_DefaultShader1.vsh | gfx_UserShader1.vsh |
| gfx_DefaultShader2.vsh | gfx_UserShader2.vsh |
| gfx_DefaultShader3.vsh | gfx_UserShader3.vsh |
| TransformMatrix.vsh | UserTransformMatrix.vsh |
| CalcColor.vsh | UserCalcColor.vsh |
| CalcHemisphereLighting.vsh | No change |
| CalcQuaternion.vsh | No change |
| CalcVertexLighting.vsh | No change |
| CalcTexcoord0.vsh | No change |
| CalcTexcoord1.vsh | No change |
| CalcTexcoord2.vsh | No change |
| GenTexcoordReflection.vsh | No change |
| GenTexcoordSphereReflection.vsh | No change |
| GetTexcoordSource.vsh | No change |
| VertexShader.h | No change |
| ShaderConfig.h | No change |
#pragma bind_symbol(NDeform, c22, c22) as a register for extending vertex coordinates in the normal vector direction, and add #pragma bind_symbol(ExColor, c74, c74) as a register for adjusting the output color. Also, users may use the universal register region to reduce the number of vertex lights.#pragma bind_symbol(UnivReg, c25, c84) to #pragma bind_symbol(UnivReg, c25, c73).
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe gfx_UserShader0.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe gfx_UserShader1.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe gfx_UserShader2.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe gfx_UserShader3.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe UserTransformMatrix.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe UserCalcColor.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe CalcHemisphereLighting.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe CalcQuaternion.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe CalcVertexLighting.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe CalcTexcoord0.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe CalcTexcoord1.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe CalcTexcoord2.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe GenTexcoordReflection.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe GenTexcoordSphereReflection.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderAssembler32.exe GetTexcoordSource.vsh
$(CTRSDK_ROOT)\tools\CommandLineTools\ctr_VertexShaderLinker32.exe gfx_UserShader0.obj gfx_UserShader1.obj gfx_UserShader2.obj gfx_UserShader3.obj UserTransformMatrix.obj UserCalcColor.obj CalcTexcoord0.obj CalcTexcoord1.obj CalcTexcoord2.obj CalcQuaternion.obj GetTexcoordSource.obj CalcHemisphereLighting.obj CalcVertexLighting.obj GenTexcoordReflection.obj GenTexcoordSphereReflection.obj -OUserShader.shbin
CONFIDENTIAL