Home
last modified time | relevance | path

Searched refs:zNear (Results 1 - 21 of 21) sorted by relevance

/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/
H A Dmatrix_util.h467 static inline Mat4X4 PerspectiveLhZo(float fovy, float aspect, float zNear, float zFar) in PerspectiveLhZo() argument
483 if (const auto div = (zFar - zNear); abs(div) > EPSILON) { in PerspectiveLhZo()
485 result.w.z = -(zFar * zNear) / div; in PerspectiveLhZo()
496 static inline Mat4X4 PerspectiveRhZo(float fovy, float aspect, float zNear, float zFar) in PerspectiveRhZo() argument
498 Mat4X4 result = PerspectiveLhZo(fovy, aspect, zNear, zFar); in PerspectiveRhZo()
507 static inline Mat4X4 PerspectiveLhNo(float fovy, float aspect, float zNear, float zFar) in PerspectiveLhNo() argument
523 if (const auto div = (zFar - zNear); abs(div) > EPSILON) { in PerspectiveLhNo()
524 result.z.z = (zFar + zNear) / div; in PerspectiveLhNo()
525 result.w.z = -(2.0f * zFar * zNear) / div; in PerspectiveLhNo()
536 static inline Mat4X4 PerspectiveRhNo(float fovy, float aspect, float zNear, floa argument
547 OrthoLhZo(float left, float right, float bottom, float top, float zNear, float zFar) OrthoLhZo() argument
561 OrthoLhNo(float left, float right, float bottom, float top, float zNear, float zFar) OrthoLhNo() argument
575 OrthoRhZo(float left, float right, float bottom, float top, float zNear, float zFar) OrthoRhZo() argument
584 OrthoRhNo(float left, float right, float bottom, float top, float zNear, float zFar) OrthoRhNo() argument
593 PerspectiveLhZo(float left, float right, float bottom, float top, float zNear, float zFar) PerspectiveLhZo() argument
625 PerspectiveRhZo(float left, float right, float bottom, float top, float zNear, float zFar) PerspectiveRhZo() argument
636 PerspectiveLhNo(float left, float right, float bottom, float top, float zNear, float zFar) PerspectiveLhNo() argument
668 PerspectiveRhNo(float left, float right, float bottom, float top, float zNear, float zFar) PerspectiveRhNo() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dmodel_view_impl.cpp70 void ModelViewImpl::SetCameraFrustum(float zNear, float zFar, float fovDegrees) in SetCameraFrustum() argument
72 GET_COMPONENT_OR_RETURN()->SetCameraFrustum(zNear, zFar, fovDegrees); in SetCameraFrustum()
H A Dmodel_view_impl.h33 void SetCameraFrustum(float zNear, float zFar, float fovDegrees) override;
/foundation/arkui/ace_engine/frameworks/core/components/scene_viewer/
H A Dscene_viewer_component.h139 void SetCameraFrustum(float zNear, float zFar, float fovDegrees) in SetCameraFrustum() argument
141 zNear_ = zNear; in SetCameraFrustum()
/foundation/graphic/graphic_3d/3d_widget_adapter/src/
H A Dwidget_adapter.cpp64 bool WidgetAdapter::SetupCameraViewProjection(float zNear, float zFar, float fovDegrees) in SetupCameraViewProjection() argument
67 engine_->SetupCameraViewProjection(zNear, zFar, fovDegrees); in SetupCameraViewProjection()
/foundation/graphic/graphic_3d/3d_widget_adapter/include/
H A Dwidget_adapter.h47 bool SetupCameraViewProjection(float zNear, float zFar, float fovDegrees);
H A Di_engine.h55 virtual void SetupCameraViewProjection(float zNear, float zFar, float fovDegrees) = 0;
/foundation/graphic/graphic_3d/3d_widget_adapter/test/
H A D3d_widget_adapter_test.h48 void SetupCameraViewProjection(float zNear, float zFar, float fovDegrees) override;
H A D3d_widget_adapter_test.cpp66 void EngineTest::SetupCameraViewProjection(float zNear, float zFar, float fovDegrees) in SetupCameraViewProjection() argument
68 (void)(zNear); in SetupCameraViewProjection()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dscene_util.cpp68 cameraComponent.yMag * -0.5f, cameraComponent.yMag * 0.5f, cameraComponent.zNear, cameraComponent.zFar); in CalculateProjectionMatrix()
81 Math::PerspectiveRhZo(cameraComponent.yFov, aspect, cameraComponent.zNear, cameraComponent.zFar); in CalculateProjectionMatrix()
94 const float scale = tan(cameraComponent.yFov * 0.5f) * cameraComponent.zNear; in CalculateProjectionMatrix()
102 cameraComponent.zNear, cameraComponent.zFar); in CalculateProjectionMatrix()
119 IEcs& ecs, const Math::Vec3& position, const Math::Quat& rotation, float zNear, float zFar, float fovDegrees) const
144 cc.zNear = zNear;
H A Dscene_util.h43 const BASE_NS::Math::Quat& rotation, float zNear, float zFar, float fovDegrees) const override;
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/
H A Dintf_scene_util.h49 * @param zNear Near plane distance.
55 const BASE_NS::Math::Quat& rotation, float zNear, float zFar, float fovDegrees) const = 0;
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/ecs/components/
H A Dcamera_component.h170 DEFINE_PROPERTY(float, zNear, "Z Near", 0, VALUE(0.3f))
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Drender_system.cpp342 renderCamera.zNear = cc.zNear; in FillRenderCameraBaseFromCameraComponent()
1999 reflCam.zNear = camera.zNear;
2106 float zNear = 0.0f;
2126 zNear = 0.0f;
2133 zNear = Math::max(0.1f, lpd.lightComponent.nearPlane);
2134 camera.matrices.proj = Math::PerspectiveRhZo(yFov, 1.0f, zNear, zFar);
2147 camera.zNear = zNear;
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/render/
H A Drender_data_defines_3d.h517 float zNear { 0.0f };
/foundation/graphic/graphic_3d/3d_widget_adapter/core/include/lume/
H A Dlume_common.h146 void SetupCameraViewProjection(float zNear, float zFar, float fovDegrees) override;
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/
H A Dwebgl_rendering_context_base.cpp993 double zNear = -1.0; in DepthRange() local
994 tie(succ, zNear) = NVal(env, funcArg[NARG_POS::FIRST]).ToDouble(); in DepthRange()
996 zNear = 0.0; in DepthRange()
1003 if (zNear > zFar) { in DepthRange()
1007 LOGD("WebGL depthRange zNear %{public}f zFar %{public}f ", zNear, zFar); in DepthRange()
1008 glDepthRangef(static_cast<GLclampf>(zNear), static_cast<GLclampf>(zFar)); in DepthRange()
/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/
H A Dlume_common.cpp1555 void LumeCommon::SetupCameraViewProjection(float zNear, float zFar, float fovDegrees) in SetupCameraViewProjection() argument
1557 zNear_ = zNear; in SetupCameraViewProjection()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_exporter.cpp495 exportCamera->attributes.ortho.znear = cameraComponent.zNear; in ExportGltfCameras()
503 exportCamera->attributes.perspective.znear = cameraComponent.zNear; in ExportGltfCameras()
H A Dgltf2_importer.cpp1898 component->zNear = node.camera->attributes.ortho.znear; in CreateCamera()
1905 component->zNear = node.camera->attributes.perspective.znear; in CreateCamera()
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Dscene_holder.cpp565 cc.zNear = 0.1f; in CreateCamera()

Completed in 32 milliseconds