| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/PartsysSimple/ |
| D | PartsysPattern.h | 45 pp->m_partsys_center.m[0][0] = 0.0f; /*|*/ pp->m_partsys_center.m[1][0] = -10.0f; in LoadParticleSystem1() 46 pp->m_partsys_center.m[0][1] = -10.0f; /*|*/ pp->m_partsys_center.m[1][1] = -5.0f; in LoadParticleSystem1() 47 pp->m_partsys_center.m[0][2] = 0.0f; /*|*/ pp->m_partsys_center.m[1][2] = 0.0f; in LoadParticleSystem1() 48 pp->m_partsys_center.m[0][3] = 1.0f; /*|*/ pp->m_partsys_center.m[1][3] = 1.0f; in LoadParticleSystem1() 50 pp->m_partsys_center.m[2][0] = 10.0f; /*|*/ pp->m_partsys_center.m[3][0] = 0.0f; in LoadParticleSystem1() 51 pp->m_partsys_center.m[2][1] = 5.0f; /*|*/ pp->m_partsys_center.m[3][1] = 10.0f; in LoadParticleSystem1() 52 pp->m_partsys_center.m[2][2] = 0.0f; /*|*/ pp->m_partsys_center.m[3][2] = 0.0f; in LoadParticleSystem1() 53 pp->m_partsys_center.m[2][3] = 1.0f; /*|*/ pp->m_partsys_center.m[3][3] = 1.0f; in LoadParticleSystem1() 61 pp->m_partsys_color.m[0][0] = 0.0f; /*|*/ pp->m_partsys_color.m[1][0] = 1.0f; in LoadParticleSystem1() 62 pp->m_partsys_color.m[0][1] = 0.0f; /*|*/ pp->m_partsys_color.m[1][1] = 0.0f; in LoadParticleSystem1() [all …]
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/PartsysGas/ |
| D | PartsysGas.cpp | 165 pp->m_partsys_center.m[0][0] = 0.0f; /*|*/ pp->m_partsys_center.m[1][0] = -5.0f; in LoadParticleSystem1() 166 pp->m_partsys_center.m[0][1] = -20.0f; /*|*/ pp->m_partsys_center.m[1][1] = -20.0f; in LoadParticleSystem1() 167 pp->m_partsys_center.m[0][2] = 0.0f; /*|*/ pp->m_partsys_center.m[1][2] = 0.0f; in LoadParticleSystem1() 168 pp->m_partsys_center.m[0][3] = 1.0f; /*|*/ pp->m_partsys_center.m[1][3] = 1.0f; in LoadParticleSystem1() 170 pp->m_partsys_center.m[2][0] = 5.0f; /*|*/ pp->m_partsys_center.m[3][0] = 0.0f; in LoadParticleSystem1() 171 pp->m_partsys_center.m[2][1] = 5.0f; /*|*/ pp->m_partsys_center.m[3][1] = 15.0f; in LoadParticleSystem1() 172 pp->m_partsys_center.m[2][2] = 0.0f; /*|*/ pp->m_partsys_center.m[3][2] = 0.0f; in LoadParticleSystem1() 173 pp->m_partsys_center.m[2][3] = 1.0f; /*|*/ pp->m_partsys_center.m[3][3] = 1.0f; in LoadParticleSystem1() 183 pp->m_partsys_color.m[0][0] = 0.0f; /*|*/ pp->m_partsys_color.m[1][0] = 1.0f; in LoadParticleSystem1() 184 pp->m_partsys_color.m[0][1] = 0.0f; /*|*/ pp->m_partsys_color.m[1][1] = 0.0f; in LoadParticleSystem1() [all …]
|
| D | Gas.cpp | 289 nn::math::Matrix44 m; in GasAccumulation() local 290 nn::math::MTX44Transpose(&m, &gas.pSys.m_partsys_center); in GasAccumulation() 291 glUniformMatrix4fv(glGetUniformLocation(pAccId, "uCenter"), 1, GL_FALSE, static_cast<f32*>(m)); in GasAccumulation() 293 nn::math::MTX44Transpose(&m, &gas.pSys.m_partsys_radius); in GasAccumulation() 294 glUniformMatrix4fv(glGetUniformLocation(pAccId, "uRadii"), 1, GL_FALSE, static_cast<f32*>(m)); in GasAccumulation() 296 nn::math::MTX44Transpose(&m, &gas.pSys.m_partsys_color); in GasAccumulation() 297 …ormMatrix4fv(glGetUniformLocation(pAccId, "dmp_PartSys.color"), 1, GL_FALSE, static_cast<f32*>(m)); in GasAccumulation() 299 nn::math::MTX44Transpose(&m, &gas.pSys.m_partsys_aspect); in GasAccumulation() 300 …rmMatrix4fv(glGetUniformLocation(pAccId, "dmp_PartSys.aspect"), 1, GL_FALSE, static_cast<f32*>(m)); in GasAccumulation()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/Common/ |
| D | Util.cpp | 160 float gaussian(float _c, float m) in gaussian() argument 163 return exp( - (a * a) / (m * m)) ; in gaussian() 166 float beckmann(float _c, float m) in beckmann() argument 172 return exp(tan2 / (m * m)) ; in beckmann() 175 float beckmann2(float _c, float m) in beckmann2() argument 182 return exp(tan2 / (m * m)) / (cos2 * cos2) ; in beckmann2() 194 GLfloat r1, r0, m ; in nk_fresnel() local 197 m = 5.0f ; in nk_fresnel() 198 return r_fresnel(_c, m, r0, r1) ; in nk_fresnel()
|
| D | Util.h | 21 float gaussian(float _c, float m); 22 float beckmann(float _c, float m); 23 float beckmann2(float _c, float m);
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/ClipEquation/ |
| D | ClipEquation.cpp | 156 nn::math::Vector4 mmpVec0(mmp.m[0][0], mmp.m[0][1], mmp.m[0][2], mmp.m[0][3]); in DrawFrame() 157 nn::math::Vector4 mmpVec1(mmp.m[1][0], mmp.m[1][1], mmp.m[1][2], mmp.m[1][3]); in DrawFrame() 158 nn::math::Vector4 mmpVec2(mmp.m[2][0], mmp.m[2][1], mmp.m[2][2], mmp.m[2][3]); in DrawFrame() 159 nn::math::Vector4 mmpVec3(mmp.m[3][0], mmp.m[3][1], mmp.m[3][2], mmp.m[3][3]); in DrawFrame()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/Demo/ScreenCapture/ |
| D | gx_CaptureUtil.cpp | 26 *near = proj->m[2][3] / proj->m[2][2]; in GetProjectionParameters() 27 *far = proj->m[2][3] / (proj->m[2][2] - 1.0f); in GetProjectionParameters() 29 f32 tmp = proj->m[2][3] / (proj->m[0][0] * proj->m[2][2]); in GetProjectionParameters() 30 *left = tmp * (proj->m[0][2] - 1.0f); in GetProjectionParameters() 31 *right = tmp * (proj->m[0][2] + 1.0f); in GetProjectionParameters() 33 tmp = proj->m[2][3] / (proj->m[1][1] * proj->m[2][2]); in GetProjectionParameters() 34 *top = tmp * (proj->m[1][2] + 1.0f); in GetProjectionParameters() 35 *bottom = tmp * (proj->m[1][2] - 1.0f); in GetProjectionParameters()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingDistanceAtte/ |
| D | LightingDistanceAtte.cpp | 176 nn::math::Vector4 mv0(mv.m[0][0], mv.m[0][1], mv.m[0][2], mv.m[0][3]); in DrawFrame() 177 nn::math::Vector4 mv1(mv.m[1][0], mv.m[1][1], mv.m[1][2], mv.m[1][3]); in DrawFrame() 178 nn::math::Vector4 mv2(mv.m[2][0], mv.m[2][1], mv.m[2][2], mv.m[2][3]); in DrawFrame() 198 nn::math::Matrix44 m(mv_tr); in DrawFrame() local 199 …niformMatrix4fv(glGetUniformLocation(s_ProgramID, "uModelView"), 1, GL_TRUE, static_cast<f32*>(m)); in DrawFrame() 218 nn::math::Matrix44 m(mv_tr); in DrawFrame() local 219 …niformMatrix4fv(glGetUniformLocation(s_ProgramID, "uModelView"), 1, GL_TRUE, static_cast<f32*>(m)); in DrawFrame()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingSpotAtte/ |
| D | LightingSpotAtte.cpp | 194 nn::math::Vector4 mv0(mv.m[0][0], mv.m[0][1], mv.m[0][2], mv.m[0][3]); in DrawFrame() 195 nn::math::Vector4 mv1(mv.m[1][0], mv.m[1][1], mv.m[1][2], mv.m[1][3]); in DrawFrame() 196 nn::math::Vector4 mv2(mv.m[2][0], mv.m[2][1], mv.m[2][2], mv.m[2][3]); in DrawFrame() 238 nn::math::Matrix44 m(mv); in DrawFrame() local 239 …niformMatrix4fv(glGetUniformLocation(s_ProgramID, "uModelView"), 1, GL_TRUE, static_cast<f32*>(m)); in DrawFrame()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingToonApple/ |
| D | LightingToonApple.cpp | 328 nn::math::Vector4 mv0(mv.m[0][0], mv.m[0][1], mv.m[0][2], mv.m[0][3]); in DrawFrame() 329 nn::math::Vector4 mv1(mv.m[1][0], mv.m[1][1], mv.m[1][2], mv.m[1][3]); in DrawFrame() 330 nn::math::Vector4 mv2(mv.m[2][0], mv.m[2][1], mv.m[2][2], mv.m[2][3]); in DrawFrame() 337 nn::math::Matrix44 m(mv); in DrawFrame() local 338 …niformMatrix4fv(glGetUniformLocation(s_ProgramID, "uModelView"), 1, GL_TRUE, static_cast<f32*>(m)); in DrawFrame()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingMicrofacet/ |
| D | LightingMicrofacet.cpp | 378 nn::math::Vector4 mv0(mv.m[0][0], mv.m[0][1], mv.m[0][2], mv.m[0][3]); in DrawFrame() 379 nn::math::Vector4 mv1(mv.m[1][0], mv.m[1][1], mv.m[1][2], mv.m[1][3]); in DrawFrame() 380 nn::math::Vector4 mv2(mv.m[2][0], mv.m[2][1], mv.m[2][2], mv.m[2][3]); in DrawFrame() 387 nn::math::Matrix44 m(mv); in DrawFrame() local 388 …niformMatrix4fv(glGetUniformLocation(s_ProgramID, "uModelView"), 1, GL_TRUE, static_cast<f32*>(m)); in DrawFrame()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingFresnel/ |
| D | LightingFresnel.cpp | 278 nn::math::Vector4 mv0(mv.m[0][0], mv.m[0][1], mv.m[0][2], mv.m[0][3]); in DrawFrame() 279 nn::math::Vector4 mv1(mv.m[1][0], mv.m[1][1], mv.m[1][2], mv.m[1][3]); in DrawFrame() 280 nn::math::Vector4 mv2(mv.m[2][0], mv.m[2][1], mv.m[2][2], mv.m[2][3]); in DrawFrame()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingSss/ |
| D | LightingSss.cpp | 95 float m; in SetLutTable() member 385 nn::math::Vector4 mv0(mv.m[0][0], mv.m[0][1], mv.m[0][2], mv.m[0][3]); in DrawFrame() 386 nn::math::Vector4 mv1(mv.m[1][0], mv.m[1][1], mv.m[1][2], mv.m[1][3]); in DrawFrame() 387 nn::math::Vector4 mv2(mv.m[2][0], mv.m[2][1], mv.m[2][2], mv.m[2][3]); in DrawFrame() 395 nn::math::Matrix44 m(mv); in DrawFrame() local 396 …niformMatrix4fv(glGetUniformLocation(s_ProgramID, "uModelView"), 1, GL_TRUE, static_cast<f32*>(m)); in DrawFrame()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingAniso/ |
| D | LightingAniso.cpp | 238 nn::math::Vector4 mv0(mv.m[0][0], mv.m[0][1], mv.m[0][2], mv.m[0][3]); in SetRenderState() 239 nn::math::Vector4 mv1(mv.m[1][0], mv.m[1][1], mv.m[1][2], mv.m[1][3]); in SetRenderState() 240 nn::math::Vector4 mv2(mv.m[2][0], mv.m[2][1], mv.m[2][2], mv.m[2][3]); in SetRenderState()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/Api/CommandBufferJump/ |
| D | CommandBufferJump.cpp | 410 nn::math::Vector4 mv0(mv.m[0][0], mv.m[0][1], mv.m[0][2], mv.m[0][3]); in CreateCommand() 411 nn::math::Vector4 mv1(mv.m[1][0], mv.m[1][1], mv.m[1][2], mv.m[1][3]); in CreateCommand() 412 nn::math::Vector4 mv2(mv.m[2][0], mv.m[2][1], mv.m[2][2], mv.m[2][3]); in CreateCommand() 513 nn::math::Matrix44 m(mv); in DrawFrame() local 523 float v = m.m[i][3 - j]; in DrawFrame()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/Api/FragmentLightingSimple/ |
| D | gx_FragmentLightingSimple.cpp | 436 lightViewMatrix.m[0][3], lightViewMatrix.m[1][3], lightViewMatrix.m[2][3], in UseShader() 457 lightViewMatrix.m[0][3], lightViewMatrix.m[1][3], lightViewMatrix.m[2][3], in UseShader() 478 lightViewMatrix.m[0][3], lightViewMatrix.m[1][3], lightViewMatrix.m[2][3], in UseShader() 499 lightViewMatrix.m[0][3], lightViewMatrix.m[1][3], lightViewMatrix.m[2][3], in UseShader()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/GasColorSimple/ |
| D | GasColorSimple.cpp | 280 nn::math::Matrix44 proj, m; in DrawFrame() local 298 m = nn::math::Matrix44(mv_rot); in DrawFrame() 300 … glUniformMatrix4fv(glGetUniformLocation(pAccId, "uModelView"), 1, GL_TRUE, static_cast<f32*>(m)); in DrawFrame() 310 m = nn::math::Matrix44(mv_tr); in DrawFrame() 311 … glUniformMatrix4fv(glGetUniformLocation(pAccId, "uModelView"), 1, GL_TRUE, static_cast<f32*>(m)); in DrawFrame()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/GasColorOptimal/ |
| D | GasColorOptimal.cpp | 264 nn::math::Matrix44 proj, m; in DrawFrame() local 282 m = nn::math::Matrix44(mv_rot); in DrawFrame() 283 … glUniformMatrix4fv(glGetUniformLocation(pAccId, "uModelView"), 1, GL_TRUE, static_cast<f32*>(m)); in DrawFrame() 295 m = nn::math::Matrix44(mv_tr); in DrawFrame() 296 … glUniformMatrix4fv(glGetUniformLocation(pAccId, "uModelView"), 1, GL_TRUE, static_cast<f32*>(m)); in DrawFrame()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/Fog/ |
| D | Fog.cpp | 144 nn::math::Vector4 v0(invPM.m[0]); in InitializeFogTable() 145 nn::math::Vector4 v1(invPM.m[1]); in InitializeFogTable() 146 nn::math::Vector4 v2(invPM.m[2]); in InitializeFogTable() 147 nn::math::Vector4 v3(invPM.m[3]); in InitializeFogTable()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/Api/AlphaTest/ |
| D | gx_AlphaTest.cpp | 195 nn::math::Matrix44 m(mvtmp); in DrawFrame() local 196 …niformMatrix4fv(glGetUniformLocation(s_ProgramId, "uModelView"), 1, GL_TRUE, static_cast<f32*>(m)); in DrawFrame()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingVertex/ |
| D | LightingVertex.cpp | 237 nn::math::Vector4 mvv0(mv.m[0]); in DrawFrame() 238 nn::math::Vector4 mvv1(mv.m[1]); in DrawFrame() 239 nn::math::Vector4 mvv2(mv.m[2]); in DrawFrame()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/Api/RenderToTexture/ |
| D | gx_RenderToTexture.cpp | 395 lightViewMatrix.m[0][3], lightViewMatrix.m[1][3], lightViewMatrix.m[2][3], in UseShaderTexture()
|
| /CTR-SDK-4.2.7-SampleDemos/demo2/ |
| D | graphics.cpp | 297 nn::math::Vector4 mvv0(view.m[0]); in DrawObjects() 298 nn::math::Vector4 mvv1(view.m[1]); in DrawObjects() 299 nn::math::Vector4 mvv2(view.m[2]); in DrawObjects()
|
| /CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/CommandCache/ |
| D | demo_CommandCache.cpp | 285 matrixArray[index] = matrix.m[index & 3][index >> 2]; in UpdateVSUniformMatrix()
|
| /CTR-SDK-4.2.7-SampleDemos/camera/Stereo/ |
| D | main.cpp | 1842 nn::math::Matrix44 proj, m; in DrawCameraImage() local 1858 nn::math::MTX44Transpose(&m, &proj); in DrawCameraImage() 1859 …formMatrix4fv(glGetUniformLocation(s_ProgramID, "uProjection"), 1, GL_FALSE, static_cast<f32*>(m)); in DrawCameraImage()
|