Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 31) sorted by relevance

12

/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingMicrofacet/
DLightingMicrofacet.cpp111 int j; in State0() local
114 for (j = 0; j < 256; j++) in State0()
116 lut[j] = powf((float)j/255.9375f, 10.f); in State0()
119 for (j = 0; j < 255; j++) in State0()
120 lut[j + 256] = lut[j + 1] - lut[j]; in State0()
171 int j; in State1() local
175 for (j = 0; j < 256; j++) in State1()
181 lut[j] = gaussian((float)j/255.9375f, 0.149f); in State1()
182 for (j = 0; j < 255; j++) in State1()
183 lut[j + 256] = lut[j + 1] - lut[j]; in State1()
[all …]
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingToonApple/
DLightingToonApple.cpp91 int j; in SetLutTable() local
98 for (j = 127; j >= 0; j--) in SetLutTable()
100 LN = (float)j/127.9375f; in SetLutTable()
102 lut[j] = previous; in SetLutTable()
105 lut[j] = LN; in SetLutTable()
106 previous = lut[j]; in SetLutTable()
110 for (j = 0; j < 127; j++) in SetLutTable()
111 lut[j + 256] = lut[j+1] - lut[j]; in SetLutTable()
115 for (j = 255; j >= 128; j--) in SetLutTable()
117 LN = (float)(j - 256) /128.f; in SetLutTable()
[all …]
/CTR-SDK-4.2.7-SampleDemos/gx/Api/CommandBufferJump/
DCommandBufferJump.cpp130 int j; in State0() local
133 for (j = 0; j < 256; j++) in State0()
135 lut[j] = powf((float)j/255.9375f, 10.f); in State0()
138 for (j = 0; j < 255; j++) in State0()
139 lut[j + 256] = lut[j + 1] - lut[j]; in State0()
190 int j; in State1() local
194 for (j = 0; j < 256; j++) in State1()
200 lut[j] = gaussian((float)j/255.9375f, 0.149f); in State1()
201 for (j = 0; j < 255; j++) in State1()
202 lut[j + 256] = lut[j + 1] - lut[j]; in State1()
[all …]
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingSss/
DLightingSss.cpp101 int j, co; in SetLutTable() local
146 for (j = 0; j < 128; j++) in SetLutTable()
148 LN = (float)j/128.f; in SetLutTable()
154 qlut[co][j] = mat.dif_refl[co] * LN; in SetLutTable()
157 …qlut[co][j] += mat.i0[co] * (1.0f / (1.0f + mat.i1[co] * h)) * gamma * mat.albedo[co] * 0.25f * RE… in SetLutTable()
158 qlut[co][j] = pow(qlut[co][j], display_gamma); in SetLutTable()
162 for (j = 128; j < 256; j++) in SetLutTable()
164 LN = (float)(j - 256) /128.f; in SetLutTable()
169 qlut[co][j] = mat.dif_refl[co] * LN; in SetLutTable()
172 qlut[co][j] += mat.i0[co] * (1.0f / (1.0f + mat.i1[co] * h)) * in SetLutTable()
[all …]
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingAniso/
DLightingAniso.cpp102 int j; in SetLutTable() local
110 for (j = 0; j < 256; j++) in SetLutTable()
111 lut[j] = 0.7f * z_schlick(0.7f, (float)j/256.f, true); in SetLutTable()
113 for (j = 0; j < 255; j++) in SetLutTable()
114 lut[j + 256] = lut[j+1] - lut[j]; in SetLutTable()
120 for (j = 0; j < 256; j++) in SetLutTable()
121 lut[j] = 0.7f * z_schlick(0.7f, (float)j/256.f, true); in SetLutTable()
123 for (j = 0; j < 255; j++) in SetLutTable()
124 lut[j + 256] = lut[j+1] - lut[j]; in SetLutTable()
130 for (j = 0; j < 256; j++) in SetLutTable()
[all …]
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingFresnel/
DLightingFresnel.cpp93 int j; in SetLutTable() local
99 for (j = 1; j < 128; j++) in SetLutTable()
100 lut[j] = 0.85f * beckmann((float)j/128.f, 0.3f); in SetLutTable()
102 for (j = 0; j < 127; j++) in SetLutTable()
103 lut[j + 256] = lut[j+1] - lut[j]; in SetLutTable()
109 for (j = 1; j < 128; j++) in SetLutTable()
110 lut[j] = beckmann((float)j/128.f, 1.4f); in SetLutTable()
112 for (j = 0; j < 127; j++) in SetLutTable()
113 lut[j + 256] = lut[j+1] - lut[j]; in SetLutTable()
118 for (j = 0; j < 256; j++) in SetLutTable()
[all …]
/CTR-SDK-4.2.7-SampleDemos/gx/Demo/ScreenCapture/
Dgx_CaptureUtil.cpp127 int i, j; in SaveDisplayBufferSD() local
157 for (j = 0; i < 246; i++, j++) in SaveDisplayBufferSD()
159 if (filename[j] == 0 ) in SaveDisplayBufferSD()
161 path[i] = filename[j]; in SaveDisplayBufferSD()
171 for (j = 0; j < 5; i++, j++) in SaveDisplayBufferSD()
173 path[i] = exname[j]; in SaveDisplayBufferSD()
220 for (y = j = 0; y < height; ++y) in SaveDisplayBufferSD()
222 linebuf[j ] = data[i ]; in SaveDisplayBufferSD()
223 linebuf[j+1] = data[i+1]; in SaveDisplayBufferSD()
224 linebuf[j+2] = data[i+2]; in SaveDisplayBufferSD()
[all …]
DTriangleSimple.cpp118 s32 i, j; in DrawDisplay0AndSave() local
157 for (j = 0; j < div; ++j) in DrawDisplay0AndSave()
169 GetProjectionForPartialCapture(&proj, &tmp, 2, i, j, 0.0f, nn::math::PIVOT_NONE); in DrawDisplay0AndSave()
190 err = SaveDisplayBufferSD(L"sdmc:/test", L"test", i * div + j, addr[currDispBuf], in DrawDisplay0AndSave()
204 NN_TLOG_("save. section (%d, %d)\n", i, j); in DrawDisplay0AndSave()
/CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/ShaderProgram/
Ddemo_ProgramObject.cpp163 for (u32 j = 0; j < 4; j++) in UpdateModelViewProjectionMatrix() local
165 if ( i == j ) in UpdateModelViewProjectionMatrix()
167 projectionArray[4 * i + j] = 1.0f; in UpdateModelViewProjectionMatrix()
168 modelViewArray[4 * i + j] = 1.0f; in UpdateModelViewProjectionMatrix()
172 projectionArray[4 * i + j] = 0.0f; in UpdateModelViewProjectionMatrix()
173 modelViewArray[4 * i + j] = 0.0f; in UpdateModelViewProjectionMatrix()
Ddemo_FontProgram.cpp216 for (u32 j = 0; j < 8; j++) in InitializeFontTexture() local
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingDistanceAtte/
DLightingDistanceAtte.cpp83 int j; in SetRenderState() local
88 for (j = 0; j < 256; j++) in SetRenderState()
90 float x = (float)j / 255.f; in SetRenderState()
92 lut[j] = y; in SetRenderState()
94 for (j = 0; j < 255; j++) in SetRenderState()
95 lut[j + 256] = lut[j + 1] - lut[j]; in SetRenderState()
190 for (unsigned j = 0; j < N*2+1; j++) in DrawFrame() local
193 float z = -3.f*N + (float)j*N; in DrawFrame()
Ds.h178 sphere( unsigned int i, unsigned int j, float r );
206 for ( unsigned int j = 0; j < nj; j++ ) { in sphere() local
208 if ( j != 0 ) { in sphere()
211 st[1] = ( float )j / ( float )nj; in sphere()
217 st[1] = ( float )j / ( float )nj; in sphere()
223 st[1] = ( float )( j + 1 ) / ( float )nj; in sphere()
228 if ( j != nj-1 ) { in sphere()
231 st[1] = ( float )j / ( float )nj; in sphere()
237 st[1] = ( float )( j + 1 ) / ( float )nj; in sphere()
243 st[1] = ( float )( j + 1 ) / ( float )nj; in sphere()
[all …]
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingSpotAtte/
DLightingSpotAtte.cpp79 unsigned int j; in SetRenderState() local
92 for (j = 0; j < 256; j++) in SetRenderState()
94 float x = ( float )j / ( float )256; in SetRenderState()
96 lut[j] = 1.f; in SetRenderState()
105 for (j = 0; j < 256; j++) in SetRenderState()
107 float x = ( float )j / ( float )256; in SetRenderState()
109 lut[j] = 1.f; in SetRenderState()
118 for (j = 0; j < 256; j++) in SetRenderState()
120 float x = ( float )j / ( float )256; in SetRenderState()
122 lut[j] = 1.f; in SetRenderState()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/GasCessna/
DGasCessna.cpp176 int j; in SetGeoMaterial() local
182 for (j = 0; j < 256; j++) in SetGeoMaterial()
183 lut[j] = pow((float)j/256.0f, 15.f); in SetGeoMaterial()
184 for (j = 0; j < 255; j++) in SetGeoMaterial()
185 lut[j + 256] = lut[j+1] - lut[j]; in SetGeoMaterial()
329 …for (unsigned j = cessna.obj[i].patch_offset; j < cessna.obj[i].patch_size + cessna.obj[i].patch_o… in DrawObject() local
332 glDrawElements(GL_TRIANGLES, cessna.patch[j].elm_size, in DrawObject()
333 … GL_UNSIGNED_SHORT, (GLvoid*)(cessna.patch[j].elm_offset + cessna.obj[i].elm_offset)); in DrawObject()
/CTR-SDK-4.2.7-SampleDemos/gx/Api/CommandListDouble/
Dgx_CommandListDouble.cpp380 for (u32 j = 0; j < s_ColumnCubeNum; j++) in InitializeGraphics() local
382 f32 y = s_CubeOffsetY + 2.0f * (s_CubeHalfEdges[1] + s_CubeOffsetSpace) * j; in InitializeGraphics()
386 …s_Cube[i][j].InitializeCube(vertexAttributes, s_CubeHalfEdges[0], s_CubeHalfEdges[1], s_CubeHalfEd… in InitializeGraphics()
387 s_Cube[i][j].SetWorldPosition(x, y, z); in InitializeGraphics()
391 s_Cube[i][j].SetColor(color[0], color[1], color[2]); in InitializeGraphics()
433 for (u32 j = 0; j < s_ColumnCubeNum; j++) in Finalize() local
437 s_Cube[i][j].Finalize(); in Finalize()
564 for (u32 j = 0; j < s_ColumnCubeNum; j++) in DrawDisplay0() local
566 DrawBody(s_Cube[i][j]); in DrawDisplay0()
/CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/CommandCache/
Ddemo_CommandCache.cpp29 for (u32 j = 0; j < 4; j++) in VertexShaderUniformMatrix() local
31 m_Offset[i][j] = 0; in VertexShaderUniformMatrix()
46 for (u32 j = 0; j < 4; j++) in Initialize() local
48 m_Offset[i][j] = 0; in Initialize()
/CTR-SDK-4.2.7-SampleDemos/gx/Api/AlphaTest/
Dgx_AlphaTest.cpp140 for ( u32 j = 0; j<MAX_OBJ_NUM; ++j) in PrintInfo() local
142 s32 ofs_sx = 300 - (j / 3) * 130; in PrintInfo()
143 s32 ofs_sy = nn::gx::DISPLAY0_WIDTH - (j % 3) * 80 - 16; in PrintInfo()
145 "a = %.4f", s_AlphaArray[j]); in PrintInfo()
Ddemo_Models.cpp103 for (int j=0; j<attrNum; ++j) in Draw() local
105 glDisableVertexAttribArray(j); in Draw()
/CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/RenderData/
Ddemo_TextsRenderData.cpp120 for (u32 j = 0; j < 4; j++) in AddText() local
122 SetColor(index4 + j, in AddText()
/CTR-SDK-4.2.7-SampleDemos/gx/Cmd/FragmentLightingSimpleCmd/
Dgx_FragmentLightingSimpleCmd.cpp384 for (u32 j = 0; j < LUT_TABLE_HALF_SIZE; j++) in InitializeD0Lut() local
389 value *= (j / 255.0f); in InitializeD0Lut()
391 s_LutArray[j] = value; in InitializeD0Lut()
394 for (u32 j = 0; j < (LUT_TABLE_HALF_SIZE - 1); j++) in InitializeD0Lut() local
396 s_LutArray[j + LUT_TABLE_HALF_SIZE] = s_LutArray[j + 1] - s_LutArray[j]; in InitializeD0Lut()
/CTR-SDK-4.2.7-SampleDemos/fs/Streaming/
DFsSampleStreamingWriter.cpp109 for (int j = 0; j < 2; ++j) in CreatePacket() local
111 bit8 *ptr = m_pBuffers[j]; in CreatePacket()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/GasColorSimple/
DGasColorSimple.cpp249 …for (unsigned j = plane.obj[i].patch_offset; j < plane.obj[i].patch_size + plane.obj[i].patch_offs… in DrawObject() local
252 glDrawElements(GL_TRIANGLES, plane.patch[j].elm_size, in DrawObject()
253 GL_UNSIGNED_SHORT, (GLvoid*)(plane.patch[j].elm_offset + plane.obj[i].elm_offset)); in DrawObject()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/GasColorOptimal/
DGasColorOptimal.cpp232 …for (unsigned j = plane.obj[i].patch_offset; j < plane.obj[i].patch_size + plane.obj[i].patch_offs… in DrawObject() local
235 glDrawElements(GL_TRIANGLES, plane.patch[j].elm_size, in DrawObject()
236 GL_UNSIGNED_SHORT, (GLvoid*)(plane.patch[j].elm_offset + plane.obj[i].elm_offset)); in DrawObject()
/CTR-SDK-4.2.7-SampleDemos/gx/Api/FragmentLightingSimple/
Dgx_FragmentLightingSimple.cpp274 for (u32 j = 0; j < LUT_TABLE_HALF_SIZE; j++) in InitializeD0Lut() local
279 value *= (j / 255.0f); in InitializeD0Lut()
281 lutArray[j] = value; in InitializeD0Lut()
284 for (u32 j = 0; j < (LUT_TABLE_HALF_SIZE - 1); j++) in InitializeD0Lut() local
286 lutArray[j + LUT_TABLE_HALF_SIZE] = lutArray[j + 1] - lutArray[j]; in InitializeD0Lut()
/CTR-SDK-4.2.7-SampleDemos/dlp/SimpleServer/
DParent.cpp200 int j = 0; in DoParent() local
205 …s_RenderSystem.DrawText(0, (2 + j) * FONT_SIZE, "%02d : %s", s_NodeData[i].nodeId, s_NodeData[i].n… in DoParent()
206 j ++; in DoParent()

12