Home
last modified time | relevance | path

Searched refs:tangents (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dmesh_util.cpp492 vector<Math::Vec4> tangents(countof(pos)); in GeneratePlaneMesh() local
507 submesh.tangents = true; in GeneratePlaneMesh()
514 auto tangentData = FillData(tangents); in GeneratePlaneMesh()
543 submesh.tangents = true; in GenerateSphereMesh()
550 auto tangentData = FillData(tangents); in GenerateSphereMesh()
576 submesh.tangents = true; in GenerateConeMesh()
586 auto tangentData = FillData(tangents); in GenerateConeMesh()
615 submesh.tangents = true; in GenerateTorusMesh()
622 auto tangentData = FillData(tangents); in GenerateTorusMesh()
651 submesh.tangents = true; in GenerateCubeMesh()
[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()
1100 …const DataBuffer& texcoords0, const DataBuffer& texcoords1, const DataBuffer& tangents, const Data… in SetVertexData() argument
1114 const bool generateTangents = submesh.info.tangents && tangents.buffer.empty(); in SetVertexData()
1175 if (!tangents.buffer.empty() && submesh.info.tangents) { in SetVertexData()
1177 …if (WriteData(tangents, submesh, MeshComponent::Submesh::DM_VB_TAN, acc.offset, acc.byteSize, buff… in SetVertexData()
1207 if (!submesh.hasNormals || (submesh.info.tangents && !submesh.hasTangents)) { in SetIndexData()
1655 … (!submesh.hasNormals || !submesh.hasUv0 || (submesh.info.tangents && !submesh.hasTangents))) { in GenerateMissingAttributes()
[all …]
H A Dmesh_builder.h46 const DataBuffer& texcoords0, const DataBuffer& texcoords1, const DataBuffer& tangents, in CORE3D_BEGIN_NAMESPACE()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/
H A Dintf_mesh_builder.h59 bool tangents { false }; in CORE3D_BEGIN_NAMESPACE()
116 const DataBuffer& texcoords0, const DataBuffer& texcoords1, const DataBuffer& tangents, in CORE3D_BEGIN_NAMESPACE()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/assets/3d/shaders/computeshader/
H A Dcore3d_dm_morph.comp130 …// skip tangent interpolation and to calculate the tangents. To calculate the tangents we need to …
/ohos5.0/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 s… member
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_importer.cpp551 …GLTF2::GLTFLoadDataResult& tangents, GLTF2::GLTFLoadDataResult& joints, GLTF2::GLTFLoadDataResult&… in LoadPrimitiveAttributeData() argument
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()
733 info.tangents = primitive.targets.size() > 0; in CreatePrimitiveImportInfo()
813 const IMeshBuilder::DataBuffer tangents = fillDataBuffer(tangent); in ProcessPrimitives() local
816 …ilder->SetVertexData(primitiveIndex, positions, normals, texcoords0, texcoords1, tangents, colors); in ProcessPrimitives()
854 … primitiveIndex, positions, normals, tangents, targetPositions, targetNormals, targetTangents); in ProcessPrimitives()
/ohos5.0/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()
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-offscreencanvasrenderingcontext2d.md1905 …> In this example, the arc created by **arcTo()** is black, and the two tangents of the arc are gr…
1907tangents: One tangent extends from the start point to the first control point, and the other tange…