Home | History | Annotate | Download | only in optimize

Lines Matching refs:components

65     private static void doTransformTangents(FloatBuffer inBuf, int offset, int components, FloatBuffer outBuf, Matrix4f transform) {
70 offset *= components;
72 for (int i = 0; i < inBuf.capacity() / components; i++) {
73 tan.x = inBuf.get(i * components + 0);
74 tan.y = inBuf.get(i * components + 1);
75 tan.z = inBuf.get(i * components + 2);
79 outBuf.put(offset + i * components + 0, tan.x);
80 outBuf.put(offset + i * components + 1, tan.y);
81 outBuf.put(offset + i * components + 2, tan.z);
83 if (components == 4){
84 outBuf.put(offset + i * components + 3, inBuf.get(i * components + 3));
111 int components;
115 components = 1;
121 components = 2;
127 components = 3;
143 compsForBuf[Type.Index.ordinal()] = components;
193 int components = compsForBuf[bufType];
199 for (int comp = 0; comp < components; comp++) {
200 int idx = inIdx.get(tri * components + comp) + globalVertIndex;
201 outIdx.put((globalTriIndex + tri) * components + comp, idx);
215 int components = inBuf.getNumComponents();
216 doTransformTangents(inPos, globalVertIndex, components, outPos, worldMatrix);