Lines Matching refs:j
36 for (size_t j = 0; j < sliceCount + 1; j++) in CreateSphereGeometry() local
38 Vector3 direction(sinf(angleStep * i) * sinf(angleStep * j), cosf(angleStep * i), in CreateSphereGeometry()
39 sinf(angleStep * i) * cosf(angleStep * j)); in CreateSphereGeometry()
41 size_t vertexIdx = i * (sliceCount + 1) + j; in CreateSphereGeometry()
51 for (size_t j = 0; j < sliceCount; j++) in CreateSphereGeometry() local
53 result->indices.push_back(static_cast<unsigned short>(i * (sliceCount + 1) + j)); in CreateSphereGeometry()
54 result->indices.push_back(static_cast<unsigned short>((i + 1) * (sliceCount + 1) + j)); in CreateSphereGeometry()
56 static_cast<unsigned short>((i + 1) * (sliceCount + 1) + (j + 1))); in CreateSphereGeometry()
58 result->indices.push_back(static_cast<unsigned short>(i * (sliceCount + 1) + j)); in CreateSphereGeometry()
60 static_cast<unsigned short>((i + 1) * (sliceCount + 1) + (j + 1))); in CreateSphereGeometry()
61 result->indices.push_back(static_cast<unsigned short>(i * (sliceCount + 1) + (j + 1))); in CreateSphereGeometry()