Home
last modified time | relevance | path

Searched refs:tangents (Results 1 - 7 of 7) sorted by relevance

/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dmesh_util.cpp492 vector<Math::Vec4> tangents(countof(pos)); in GeneratePlaneMesh()
499 CalculateTangents(indicesView, positionsView, normalsView, uvsView, tangents); in GeneratePlaneMesh()
507 submesh.tangents = true; in GeneratePlaneMesh()
514 auto tangentData = FillData(tangents); in GeneratePlaneMesh()
535 vector<Math::Vec4> tangents(vertices.size()); in GenerateSphereMesh()
536 CalculateTangents(indices, vertices, normals, uvs, tangents); in GenerateSphereMesh()
543 submesh.tangents = true; in GenerateSphereMesh()
550 auto tangentData = FillData(tangents); in GenerateSphereMesh()
576 submesh.tangents = true; in GenerateConeMesh()
578 vector<Math::Vec4> tangents(vertice in GenerateConeMesh()
[all...]
H A Dmesh_builder.cpp924 void GenerateDefaultTangents(IMeshBuilder::DataBuffer& tangents, vector<uint8_t>& generatedTangents, in GenerateDefaultTangents() argument
930 tangents.format = BASE_FORMAT_R32G32B32A32_SFLOAT; in GenerateDefaultTangents()
931 tangents.stride = sizeof(Math::Vec4); in GenerateDefaultTangents()
932 tangents.buffer = generatedTangents; in GenerateDefaultTangents()
1099 const DataBuffer& texcoords0, const DataBuffer& texcoords1, const DataBuffer& tangents, const DataBuffer& colors) in SetVertexData()
1112 // If we need to generate tangents we need float copies of position, normal and uv0 in SetVertexData()
1113 const bool generateTangents = submesh.info.tangents && tangents.buffer.empty(); in SetVertexData()
1174 if (!tangents.buffer.empty() && submesh.info.tangents) { in SetVertexData()
1098 SetVertexData(size_t submeshIndex, const DataBuffer& positions, const DataBuffer& normals, const DataBuffer& texcoords0, const DataBuffer& texcoords1, const DataBuffer& tangents, const DataBuffer& colors) SetVertexData() argument
[all...]
H A Dmesh_builder.h46 const DataBuffer& texcoords0, const DataBuffer& texcoords1, const DataBuffer& tangents,
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/
H A Dintf_mesh_builder.h59 bool tangents { false };
112 * @param tangents Tangent data (4 * vertexCount values), this parameter is optional.
116 const DataBuffer& texcoords0, const DataBuffer& texcoords1, const DataBuffer& tangents,
152 * @param baseTangents Initial vertex tangents (base pose).
157 * @param targetTangents Morph target vertex tangents (delta offsets from base vertex, total size of array is
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/
H A Dmesh_arrays.h27 BASE_NS::vector<BASE_NS::Math::Vec4> tangents; // optional, will be created if createTangents is set true member
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_importer.cpp551 GLTF2::GLTFLoadDataResult& tangents, GLTF2::GLTFLoadDataResult& joints, GLTF2::GLTFLoadDataResult& weights, in LoadPrimitiveAttributeData()
578 tangents = move(loadDataResult); in LoadPrimitiveAttributeData()
724 info.tangents = ContainsAttribute(primitive, GLTF2::AttributeType::TANGENT); in CreatePrimitiveImportInfo()
725 if (!info.tangents) { in CreatePrimitiveImportInfo()
727 info.tangents = hasNormalMap; in CreatePrimitiveImportInfo()
730 if (!info.tangents) { in CreatePrimitiveImportInfo()
732 // Therefore we must have tangents defined for this primitive. in CreatePrimitiveImportInfo()
733 info.tangents = primitive.targets.size() > 0; in CreatePrimitiveImportInfo()
813 const IMeshBuilder::DataBuffer tangents = fillDataBuffer(tangent); in ProcessPrimitives() local
816 result.meshBuilder->SetVertexData(primitiveIndex, positions, normals, texcoords0, texcoords1, tangents, color in ProcessPrimitives()
549 LoadPrimitiveAttributeData(const GLTF2::MeshPrimitive& primitive, GLTF2::GLTFLoadDataResult& positions, GLTF2::GLTFLoadDataResult& normals, array_view<GLTF2::GLTFLoadDataResult> texcoords, GLTF2::GLTFLoadDataResult& tangents, GLTF2::GLTFLoadDataResult& joints, GLTF2::GLTFLoadDataResult& weights, GLTF2::GLTFLoadDataResult& colors, const uint32_t& flags) LoadPrimitiveAttributeData() argument
[all...]
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Dscene_holder.cpp2462 submesh.tangents = geometry->generateTangents; in CreateMeshFromArrays()
2471 FillData<BASE_NS::Math::Vec2>(geometry->uv2s), FillData<BASE_NS::Math::Vec4>(geometry->tangents), in CreateMeshFromArrays()

Completed in 12 milliseconds