Skip to content
Snippets Groups Projects
Commit a7856d4f authored by Graham Linden's avatar Graham Linden
Browse files

SL-11374

Use color channel for trees instead of shenanigans to get proper diffuse colors to shaders.

Remove fudge factors on density modifier in class1 sky.
parent 70497573
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,7 @@ void main() ...@@ -103,7 +103,7 @@ void main()
vec4 sunlight = sunlight_color; vec4 sunlight = sunlight_color;
vec4 light_atten; vec4 light_atten;
float dens_mul = density_multiplier * 0.45; float dens_mul = density_multiplier;
// Sunlight attenuation effect (hue and brightness) due to atmosphere // Sunlight attenuation effect (hue and brightness) due to atmosphere
// this is used later for sunlight modulation at various altitudes // this is used later for sunlight modulation at various altitudes
......
...@@ -87,7 +87,7 @@ void main() ...@@ -87,7 +87,7 @@ void main()
vec4 sunlight = (sun_up_factor == 1) ? sunlight_color : moonlight_color; vec4 sunlight = (sun_up_factor == 1) ? sunlight_color : moonlight_color;
vec4 light_atten; vec4 light_atten;
float dens_mul = density_multiplier * 0.45; float dens_mul = density_multiplier;
// Sunlight attenuation effect (hue and brightness) due to atmosphere // Sunlight attenuation effect (hue and brightness) due to atmosphere
// this is used later for sunlight modulation at various altitudes // this is used later for sunlight modulation at various altitudes
......
...@@ -56,6 +56,4 @@ void main() ...@@ -56,6 +56,4 @@ void main()
vec4 color = calcLighting(pos.xyz, norm, diffuse_color); vec4 color = calcLighting(pos.xyz, norm, diffuse_color);
vertex_color = color; vertex_color = color;
} }
...@@ -97,7 +97,7 @@ void LLDrawPoolTree::render(S32 pass) ...@@ -97,7 +97,7 @@ void LLDrawPoolTree::render(S32 pass)
} }
LLGLState test(GL_ALPHA_TEST, LLGLSLShader::sNoFixedFunction ? 0 : 1); LLGLState test(GL_ALPHA_TEST, LLGLSLShader::sNoFixedFunction ? 0 : 1);
LLOverrideFaceColor color(this, 1.f, 1.f, 1.f, 1.f); //LLOverrideFaceColor color(this, 1.f, 1.f, 1.f, 1.f);
gGL.getTexUnit(sDiffTex)->bind(mTexturep); gGL.getTexUnit(sDiffTex)->bind(mTexturep);
......
...@@ -37,7 +37,8 @@ class LLDrawPoolTree : public LLFacePool ...@@ -37,7 +37,8 @@ class LLDrawPoolTree : public LLFacePool
{ {
VERTEX_DATA_MASK = LLVertexBuffer::MAP_VERTEX | VERTEX_DATA_MASK = LLVertexBuffer::MAP_VERTEX |
LLVertexBuffer::MAP_NORMAL | LLVertexBuffer::MAP_NORMAL |
LLVertexBuffer::MAP_TEXCOORD0 LLVertexBuffer::MAP_COLOR |
LLVertexBuffer::MAP_TEXCOORD0
}; };
virtual U32 getVertexDataMask() { return VERTEX_DATA_MASK; } virtual U32 getVertexDataMask() { return VERTEX_DATA_MASK; }
......
...@@ -536,12 +536,14 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable) ...@@ -536,12 +536,14 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable)
LLStrider<LLVector3> vertices; LLStrider<LLVector3> vertices;
LLStrider<LLVector3> normals; LLStrider<LLVector3> normals;
LLStrider<LLColor4U> colors;
LLStrider<LLVector2> tex_coords; LLStrider<LLVector2> tex_coords;
LLStrider<U16> indicesp; LLStrider<U16> indicesp;
mReferenceBuffer->getVertexStrider(vertices); mReferenceBuffer->getVertexStrider(vertices);
mReferenceBuffer->getNormalStrider(normals); mReferenceBuffer->getNormalStrider(normals);
mReferenceBuffer->getTexCoord0Strider(tex_coords); mReferenceBuffer->getTexCoord0Strider(tex_coords);
mReferenceBuffer->getColorStrider(colors);
mReferenceBuffer->getIndexStrider(indicesp); mReferenceBuffer->getIndexStrider(indicesp);
S32 vertex_count = 0; S32 vertex_count = 0;
...@@ -551,24 +553,27 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable) ...@@ -551,24 +553,27 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable)
*(normals++) = LLVector3(-SRR2, -SRR2, 0.f); *(normals++) = LLVector3(-SRR2, -SRR2, 0.f);
*(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_BOTTOM); *(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_BOTTOM);
*(vertices++) = LLVector3(-0.5f*LEAF_WIDTH, 0.f, 0.f); *(vertices++) = LLVector3(-0.5f*LEAF_WIDTH, 0.f, 0.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(normals++) = LLVector3(SRR3, -SRR3, SRR3); *(normals++) = LLVector3(SRR3, -SRR3, SRR3);
*(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_TOP); *(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_TOP);
*(vertices++) = LLVector3(0.5f*LEAF_WIDTH, 0.f, 1.f); *(vertices++) = LLVector3(0.5f*LEAF_WIDTH, 0.f, 1.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(normals++) = LLVector3(-SRR3, -SRR3, SRR3); *(normals++) = LLVector3(-SRR3, -SRR3, SRR3);
*(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_TOP); *(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_TOP);
*(vertices++) = LLVector3(-0.5f*LEAF_WIDTH, 0.f, 1.f); *(vertices++) = LLVector3(-0.5f*LEAF_WIDTH, 0.f, 1.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(normals++) = LLVector3(SRR2, -SRR2, 0.f); *(normals++) = LLVector3(SRR2, -SRR2, 0.f);
*(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_BOTTOM); *(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_BOTTOM);
*(vertices++) = LLVector3(0.5f*LEAF_WIDTH, 0.f, 0.f); *(vertices++) = LLVector3(0.5f*LEAF_WIDTH, 0.f, 0.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(indicesp++) = 0; *(indicesp++) = 0;
index_count++; index_count++;
*(indicesp++) = 1; *(indicesp++) = 1;
...@@ -587,21 +592,25 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable) ...@@ -587,21 +592,25 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable)
*(normals++) = LLVector3(-SRR2, SRR2, 0.f); *(normals++) = LLVector3(-SRR2, SRR2, 0.f);
*(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_BOTTOM); *(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_BOTTOM);
*(vertices++) = LLVector3(-0.5f*LEAF_WIDTH, 0.f, 0.f); *(vertices++) = LLVector3(-0.5f*LEAF_WIDTH, 0.f, 0.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(normals++) = LLVector3(SRR3, SRR3, SRR3); *(normals++) = LLVector3(SRR3, SRR3, SRR3);
*(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_TOP); *(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_TOP);
*(vertices++) = LLVector3(0.5f*LEAF_WIDTH, 0.f, 1.f); *(vertices++) = LLVector3(0.5f*LEAF_WIDTH, 0.f, 1.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(normals++) = LLVector3(-SRR3, SRR3, SRR3); *(normals++) = LLVector3(-SRR3, SRR3, SRR3);
*(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_TOP); *(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_TOP);
*(vertices++) = LLVector3(-0.5f*LEAF_WIDTH, 0.f, 1.f); *(vertices++) = LLVector3(-0.5f*LEAF_WIDTH, 0.f, 1.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(normals++) = LLVector3(SRR2, SRR2, 0.f); *(normals++) = LLVector3(SRR2, SRR2, 0.f);
*(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_BOTTOM); *(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_BOTTOM);
*(vertices++) = LLVector3(0.5f*LEAF_WIDTH, 0.f, 0.f); *(vertices++) = LLVector3(0.5f*LEAF_WIDTH, 0.f, 0.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(indicesp++) = 4; *(indicesp++) = 4;
...@@ -623,21 +632,25 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable) ...@@ -623,21 +632,25 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable)
*(normals++) = LLVector3(SRR2, -SRR2, 0.f); *(normals++) = LLVector3(SRR2, -SRR2, 0.f);
*(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_BOTTOM); *(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_BOTTOM);
*(vertices++) = LLVector3(0.f, -0.5f*LEAF_WIDTH, 0.f); *(vertices++) = LLVector3(0.f, -0.5f*LEAF_WIDTH, 0.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(normals++) = LLVector3(SRR3, SRR3, SRR3); *(normals++) = LLVector3(SRR3, SRR3, SRR3);
*(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_TOP); *(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_TOP);
*(vertices++) = LLVector3(0.f, 0.5f*LEAF_WIDTH, 1.f); *(vertices++) = LLVector3(0.f, 0.5f*LEAF_WIDTH, 1.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(normals++) = LLVector3(SRR3, -SRR3, SRR3); *(normals++) = LLVector3(SRR3, -SRR3, SRR3);
*(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_TOP); *(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_TOP);
*(vertices++) = LLVector3(0.f, -0.5f*LEAF_WIDTH, 1.f); *(vertices++) = LLVector3(0.f, -0.5f*LEAF_WIDTH, 1.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(normals++) = LLVector3(SRR2, SRR2, 0.f); *(normals++) = LLVector3(SRR2, SRR2, 0.f);
*(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_BOTTOM); *(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_BOTTOM);
*(vertices++) = LLVector3(0.f, 0.5f*LEAF_WIDTH, 0.f); *(vertices++) = LLVector3(0.f, 0.5f*LEAF_WIDTH, 0.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(indicesp++) = 8; *(indicesp++) = 8;
...@@ -659,21 +672,25 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable) ...@@ -659,21 +672,25 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable)
*(normals++) = LLVector3(-SRR2, -SRR2, 0.f); *(normals++) = LLVector3(-SRR2, -SRR2, 0.f);
*(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_BOTTOM); *(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_BOTTOM);
*(vertices++) = LLVector3(0.f, -0.5f*LEAF_WIDTH, 0.f); *(vertices++) = LLVector3(0.f, -0.5f*LEAF_WIDTH, 0.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(normals++) = LLVector3(-SRR3, SRR3, SRR3); *(normals++) = LLVector3(-SRR3, SRR3, SRR3);
*(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_TOP); *(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_TOP);
*(vertices++) = LLVector3(0.f, 0.5f*LEAF_WIDTH, 1.f); *(vertices++) = LLVector3(0.f, 0.5f*LEAF_WIDTH, 1.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(normals++) = LLVector3(-SRR3, -SRR3, SRR3); *(normals++) = LLVector3(-SRR3, -SRR3, SRR3);
*(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_TOP); *(tex_coords++) = LLVector2(LEAF_LEFT, LEAF_TOP);
*(vertices++) = LLVector3(0.f, -0.5f*LEAF_WIDTH, 1.f); *(vertices++) = LLVector3(0.f, -0.5f*LEAF_WIDTH, 1.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(normals++) = LLVector3(-SRR2, SRR2, 0.f); *(normals++) = LLVector3(-SRR2, SRR2, 0.f);
*(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_BOTTOM); *(tex_coords++) = LLVector2(LEAF_RIGHT, LEAF_BOTTOM);
*(vertices++) = LLVector3(0.f, 0.5f*LEAF_WIDTH, 0.f); *(vertices++) = LLVector3(0.f, 0.5f*LEAF_WIDTH, 0.f);
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
*(indicesp++) = 12; *(indicesp++) = 12;
...@@ -786,6 +803,7 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable) ...@@ -786,6 +803,7 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable)
*(vertices++) = LLVector3(x1*radius, y1*radius, z); *(vertices++) = LLVector3(x1*radius, y1*radius, z);
*(normals++) = LLVector3(x1, y1, 0.f); *(normals++) = LLVector3(x1, y1, 0.f);
*(tex_coords++) = tc; *(tex_coords++) = tc;
*(colors++) = LLColor4U::white;
vertex_count++; vertex_count++;
} }
} }
...@@ -910,15 +928,17 @@ void LLVOTree::updateMesh() ...@@ -910,15 +928,17 @@ void LLVOTree::updateMesh()
LLStrider<LLVector3> vertices; LLStrider<LLVector3> vertices;
LLStrider<LLVector3> normals; LLStrider<LLVector3> normals;
LLStrider<LLVector2> tex_coords; LLStrider<LLVector2> tex_coords;
LLStrider<LLColor4U> colors;
LLStrider<U16> indices; LLStrider<U16> indices;
U16 idx_offset = 0; U16 idx_offset = 0;
buff->getVertexStrider(vertices); buff->getVertexStrider(vertices);
buff->getNormalStrider(normals); buff->getNormalStrider(normals);
buff->getTexCoord0Strider(tex_coords); buff->getTexCoord0Strider(tex_coords);
buff->getColorStrider(colors);
buff->getIndexStrider(indices); buff->getIndexStrider(indices);
genBranchPipeline(vertices, normals, tex_coords, indices, idx_offset, scale_mat, mTrunkLOD, stop_depth, mDepth, mTrunkDepth, 1.0, mTwist, droop, mBranches, alpha); genBranchPipeline(vertices, normals, tex_coords, colors, indices, idx_offset, scale_mat, mTrunkLOD, stop_depth, mDepth, mTrunkDepth, 1.0, mTwist, droop, mBranches, alpha);
mReferenceBuffer->flush(); mReferenceBuffer->flush();
buff->flush(); buff->flush();
...@@ -927,6 +947,7 @@ void LLVOTree::updateMesh() ...@@ -927,6 +947,7 @@ void LLVOTree::updateMesh()
void LLVOTree::appendMesh(LLStrider<LLVector3>& vertices, void LLVOTree::appendMesh(LLStrider<LLVector3>& vertices,
LLStrider<LLVector3>& normals, LLStrider<LLVector3>& normals,
LLStrider<LLVector2>& tex_coords, LLStrider<LLVector2>& tex_coords,
LLStrider<LLColor4U>& colors,
LLStrider<U16>& indices, LLStrider<U16>& indices,
U16& cur_idx, U16& cur_idx,
LLMatrix4& matrix, LLMatrix4& matrix,
...@@ -939,11 +960,13 @@ void LLVOTree::appendMesh(LLStrider<LLVector3>& vertices, ...@@ -939,11 +960,13 @@ void LLVOTree::appendMesh(LLStrider<LLVector3>& vertices,
LLStrider<LLVector3> v; LLStrider<LLVector3> v;
LLStrider<LLVector3> n; LLStrider<LLVector3> n;
LLStrider<LLVector2> t; LLStrider<LLVector2> t;
LLStrider<LLColor4U> c;
LLStrider<U16> idx; LLStrider<U16> idx;
mReferenceBuffer->getVertexStrider(v); mReferenceBuffer->getVertexStrider(v);
mReferenceBuffer->getNormalStrider(n); mReferenceBuffer->getNormalStrider(n);
mReferenceBuffer->getTexCoord0Strider(t); mReferenceBuffer->getTexCoord0Strider(t);
mReferenceBuffer->getColorStrider(c);
mReferenceBuffer->getIndexStrider(idx); mReferenceBuffer->getIndexStrider(idx);
//copy/transform vertices into mesh - check //copy/transform vertices into mesh - check
...@@ -955,6 +978,7 @@ void LLVOTree::appendMesh(LLStrider<LLVector3>& vertices, ...@@ -955,6 +978,7 @@ void LLVOTree::appendMesh(LLStrider<LLVector3>& vertices,
norm.normalize(); norm.normalize();
*normals++ = norm; *normals++ = norm;
*tex_coords++ = t[index]; *tex_coords++ = t[index];
*colors++ = c[index];
} }
//copy offset indices into mesh - check //copy offset indices into mesh - check
...@@ -972,6 +996,7 @@ void LLVOTree::appendMesh(LLStrider<LLVector3>& vertices, ...@@ -972,6 +996,7 @@ void LLVOTree::appendMesh(LLStrider<LLVector3>& vertices,
void LLVOTree::genBranchPipeline(LLStrider<LLVector3>& vertices, void LLVOTree::genBranchPipeline(LLStrider<LLVector3>& vertices,
LLStrider<LLVector3>& normals, LLStrider<LLVector3>& normals,
LLStrider<LLVector2>& tex_coords, LLStrider<LLVector2>& tex_coords,
LLStrider<LLColor4U>& colors,
LLStrider<U16>& indices, LLStrider<U16>& indices,
U16& index_offset, U16& index_offset,
LLMatrix4& matrix, LLMatrix4& matrix,
...@@ -1013,7 +1038,7 @@ void LLVOTree::genBranchPipeline(LLStrider<LLVector3>& vertices, ...@@ -1013,7 +1038,7 @@ void LLVOTree::genBranchPipeline(LLStrider<LLVector3>& vertices,
LLMatrix4 norm_mat = LLMatrix4(norm.inverse().transpose().m); LLMatrix4 norm_mat = LLMatrix4(norm.inverse().transpose().m);
norm_mat.invert(); norm_mat.invert();
appendMesh(vertices, normals, tex_coords, indices, index_offset, scale_mat, norm_mat, appendMesh(vertices, normals, tex_coords, colors, indices, index_offset, scale_mat, norm_mat,
sLODVertexOffset[trunk_LOD], sLODVertexCount[trunk_LOD], sLODIndexCount[trunk_LOD], sLODIndexOffset[trunk_LOD]); sLODVertexOffset[trunk_LOD], sLODVertexCount[trunk_LOD], sLODIndexCount[trunk_LOD], sLODIndexOffset[trunk_LOD]);
} }
...@@ -1032,7 +1057,7 @@ void LLVOTree::genBranchPipeline(LLStrider<LLVector3>& vertices, ...@@ -1032,7 +1057,7 @@ void LLVOTree::genBranchPipeline(LLStrider<LLVector3>& vertices,
LLMatrix4 rot_mat(rot); LLMatrix4 rot_mat(rot);
rot_mat *= trans_mat; rot_mat *= trans_mat;
genBranchPipeline(vertices, normals, tex_coords, indices, index_offset, rot_mat, trunk_LOD, stop_level, depth - 1, 0, scale*mScaleStep, twist, droop, branches, alpha); genBranchPipeline(vertices, normals, tex_coords, colors, indices, index_offset, rot_mat, trunk_LOD, stop_level, depth - 1, 0, scale*mScaleStep, twist, droop, branches, alpha);
} }
// Recurse to continue trunk // Recurse to continue trunk
if (trunk_depth) if (trunk_depth)
...@@ -1043,7 +1068,7 @@ void LLVOTree::genBranchPipeline(LLStrider<LLVector3>& vertices, ...@@ -1043,7 +1068,7 @@ void LLVOTree::genBranchPipeline(LLStrider<LLVector3>& vertices,
LLMatrix4 rot_mat(70.5f*DEG_TO_RAD, LLVector4(0,0,1)); LLMatrix4 rot_mat(70.5f*DEG_TO_RAD, LLVector4(0,0,1));
rot_mat *= trans_mat; // rotate a bit around Z when ascending rot_mat *= trans_mat; // rotate a bit around Z when ascending
genBranchPipeline(vertices, normals, tex_coords, indices, index_offset, rot_mat, trunk_LOD, stop_level, depth, trunk_depth-1, scale*mScaleStep, twist, droop, branches, alpha); genBranchPipeline(vertices, normals, tex_coords, colors, indices, index_offset, rot_mat, trunk_LOD, stop_level, depth, trunk_depth-1, scale*mScaleStep, twist, droop, branches, alpha);
} }
} }
else else
...@@ -1062,7 +1087,7 @@ void LLVOTree::genBranchPipeline(LLStrider<LLVector3>& vertices, ...@@ -1062,7 +1087,7 @@ void LLVOTree::genBranchPipeline(LLStrider<LLVector3>& vertices,
glh::matrix4f norm((F32*) scale_mat.mMatrix); glh::matrix4f norm((F32*) scale_mat.mMatrix);
LLMatrix4 norm_mat = LLMatrix4(norm.inverse().transpose().m); LLMatrix4 norm_mat = LLMatrix4(norm.inverse().transpose().m);
appendMesh(vertices, normals, tex_coords, indices, index_offset, scale_mat, norm_mat, 0, LEAF_VERTICES, LEAF_INDICES, 0); appendMesh(vertices, normals, tex_coords, colors, indices, index_offset, scale_mat, norm_mat, 0, LEAF_VERTICES, LEAF_INDICES, 0);
} }
} }
} }
......
...@@ -79,7 +79,8 @@ class LLVOTree : public LLViewerObject ...@@ -79,7 +79,8 @@ class LLVOTree : public LLViewerObject
void appendMesh(LLStrider<LLVector3>& vertices, void appendMesh(LLStrider<LLVector3>& vertices,
LLStrider<LLVector3>& normals, LLStrider<LLVector3>& normals,
LLStrider<LLVector2>& tex_coords, LLStrider<LLVector2>& tex_coords,
LLStrider<LLColor4U>& colors,
LLStrider<U16>& indices, LLStrider<U16>& indices,
U16& idx_offset, U16& idx_offset,
LLMatrix4& matrix, LLMatrix4& matrix,
...@@ -92,6 +93,7 @@ class LLVOTree : public LLViewerObject ...@@ -92,6 +93,7 @@ class LLVOTree : public LLViewerObject
void genBranchPipeline(LLStrider<LLVector3>& vertices, void genBranchPipeline(LLStrider<LLVector3>& vertices,
LLStrider<LLVector3>& normals, LLStrider<LLVector3>& normals,
LLStrider<LLVector2>& tex_coords, LLStrider<LLVector2>& tex_coords,
LLStrider<LLColor4U>& colors,
LLStrider<U16>& indices, LLStrider<U16>& indices,
U16& index_offset, U16& index_offset,
LLMatrix4& matrix, LLMatrix4& matrix,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment