Home
last modified time | relevance | path

Searched refs:lightPos (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/
H A Drs_point_light_manager.cpp150 Vector4f lightPos; in CalculateLightPosForIlluminated() local
156 lightPos.x_ = lightSourceAbsPosition.x_ - illuminatedAbsRect.GetLeft(); in CalculateLightPosForIlluminated()
157 lightPos.y_ = lightSourceAbsPosition.y_ - illuminatedAbsRect.GetTop(); in CalculateLightPosForIlluminated()
160 lightPos.x_ = illuminatedAbsRect.GetBottom() - lightSourceAbsPosition.x_; in CalculateLightPosForIlluminated()
161 lightPos.y_ = lightSourceAbsPosition.y_ - illuminatedAbsRect.GetLeft(); in CalculateLightPosForIlluminated()
164 lightPos.x_ = illuminatedAbsRect.GetRight() - lightSourceAbsPosition.x_; in CalculateLightPosForIlluminated()
168 lightPos.x_ = lightSourceAbsPosition.x_ - illuminatedAbsRect.GetTop(); in CalculateLightPosForIlluminated()
169 lightPos.y_ = illuminatedAbsRect.GetRight() - lightSourceAbsPosition.y_; in CalculateLightPosForIlluminated()
174 lightPos.z_ = lightPosition.z_; in CalculateLightPosForIlluminated()
175 lightPos.w_ = lightPosition.w_; in CalculateLightPosForIlluminated()
[all …]
H A Drs_properties.cpp3369 auto lightPos = lightSourcePtr_->GetLightPosition(); in CalculateAbsLightPosition() local
3372 lightAbsPosition.x_ = static_cast<int>(lightSourceAbsRect.GetLeft() + lightPos.x_); in CalculateAbsLightPosition()
3373 lightAbsPosition.y_ = static_cast<int>(lightSourceAbsRect.GetTop() + lightPos.y_); in CalculateAbsLightPosition()
3376 lightAbsPosition.x_ = static_cast<int>(lightSourceAbsRect.GetBottom() - lightPos.x_); in CalculateAbsLightPosition()
3377 lightAbsPosition.y_ = static_cast<int>(lightSourceAbsRect.GetLeft() + lightPos.y_); in CalculateAbsLightPosition()
3380 lightAbsPosition.x_ = static_cast<int>(lightSourceAbsRect.GetRight() - lightPos.x_); in CalculateAbsLightPosition()
3381 lightAbsPosition.y_ = static_cast<int>(lightSourceAbsRect.GetBottom() - lightPos.y_); in CalculateAbsLightPosition()
3384 lightAbsPosition.x_ = static_cast<int>(lightSourceAbsRect.GetTop() + lightPos.x_); in CalculateAbsLightPosition()
3385 lightAbsPosition.y_ = static_cast<int>(lightSourceAbsRect.GetRight() - lightPos.y_); in CalculateAbsLightPosition()
3390 lightAbsPosition.z_ = lightPos.z_; in CalculateAbsLightPosition()
[all …]
H A Drs_properties_painter.cpp429 Drawing::Point3 lightPos = {pt[0].GetX(), pt[0].GetY(), DEFAULT_LIGHT_HEIGHT}; in DrawShadowInner() local
433 canvas.DrawShadowStyle(path, planeParams, lightPos, DEFAULT_LIGHT_RADIUS, in DrawShadowInner()
1234 auto lightPos = iter->second; in DrawLightInner() local
1240 lightPosArray[cnt * vectorLen + i] = lightPos[i]; in DrawLightInner()
1241 viewPosArray[cnt * vectorLen + i] = lightPos[i]; in DrawLightInner()
H A Drs_property_drawable_bounds_geometry.cpp544 Drawing::Point3 lightPos = {pt[0].GetX(), pt[0].GetY(), DEFAULT_LIGHT_HEIGHT}; in Draw() local
549 …canvas.DrawShadowStyle(path, planeParams, lightPos, DEFAULT_LIGHT_RADIUS, Drawing::Color(ambientCo… in Draw()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/
H A Dshadowutils.cpp38 OH_Drawing_Point3D lightPos; member
49 OH_Drawing_Point3D lightPos; member
63 OH_Drawing_Point3D lightPos = param.lightPos; in draw_shadow() local
206 OH_Drawing_Point3D lightPos = param.lightPos; in draw_rect_path_shadow() local
230 draw_shadow(canvas, path, { kHeight, 0xFFFF0000, lightPos, kLightR, true, flags }); in draw_rect_path_shadow()
231 draw_shadow(canvas, path, { kHeight, 0xFF0000FF, lightPos, kLightR, false, flags }); in draw_rect_path_shadow()
264 OH_Drawing_Point3D lightPos = param.lightPos; in draw_star() local
311 void draw_black_point(OH_Drawing_Canvas* canvas, OH_Drawing_Point3D lightPos, float kLightR) in draw_black_point() argument
328 OH_Drawing_Point* center = OH_Drawing_PointCreate(lightPos.x, lightPos.y); in draw_black_point()
366 OH_Drawing_Point3D lightPos = { lightXY.x, lightXY.y, 500.f }; // 500.f 坐标参数 in draw_paths() local
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_drag/
H A Dtext_drag_overlay_modifier.cpp58 …RSPoint3 lightPos = { bounds.GetLeft() + bounds.GetWidth() / 2.0, bounds.GetTop() + bounds.GetHeig… in PaintShadow() local
61 …canvas.DrawShadowStyle(rsPath, planeParams, lightPos, DEFAULT_LIGHT_RADIUS, ambientColor, spotColo… in PaintShadow()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/
H A Drs_properties_def.h314 …dLightSourcesAndPos(const std::shared_ptr<RSLightSource>& lightSourcePtr, const Vector4f& lightPos) in AddLightSourcesAndPos() argument
316 lightSourcesAndPosMap_.insert(std::make_pair(lightSourcePtr, lightPos)); in AddLightSourcesAndPos()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/
H A Drs_property_drawable_foreground.cpp545 auto lightPos = iter->second; in DrawLight() local
551 lightPosArray[cnt * vectorLen + i] = lightPos[i]; in DrawLight()
552 viewPosArray[cnt * vectorLen + i] = lightPos[i]; in DrawLight()
H A Drs_property_drawable_utils.cpp978 Drawing::Point3 lightPos = {pt[0].GetX(), pt[0].GetY(), DEFAULT_LIGHT_HEIGHT}; in DrawShadow() local
982 …canvas->DrawShadowStyle(path, planeParams, lightPos, DEFAULT_LIGHT_RADIUS, Drawing::Color(ambientC… in DrawShadow()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor_drag/
H A Drich_editor_drag_overlay_modifier.cpp313 …RSPoint3 lightPos = { bounds.GetLeft() + bounds.GetWidth() / 2.0, bounds.GetTop() + bounds.GetHeig… in PaintShadow() local
316 …canvas.DrawShadowStyle(rsPath, planeParams, lightPos, DEFAULT_LIGHT_RADIUS, ambientColor, spotColo… in PaintShadow()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/
H A Dbubble_paint_method.cpp328 RSPoint3 lightPos = { rsPath.GetBounds().GetLeft() / 2.0 + rsPath.GetBounds().GetRight() / 2.0, in PaintShadow() local
332 RSPoint3 lightPos = { bounds.GetLeft() / 2.0 + bounds.GetRight() / 2.0, in PaintShadow() local
336 … canvas.DrawShadow(rsPath, planeParams, lightPos, shadow.GetLightRadius(), ambientColor, spotColor, in PaintShadow()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/canvas_napi/
H A Djs_canvas.cpp518 Point3 lightPos; in OnDrawShadow() local
519 …omJsPoint3d(env, argv[ARGC_ONE], offset) || !ConvertFromJsPoint3d(env, argv[ARGC_TWO], lightPos)) { in OnDrawShadow()
550 …m_canvas->DrawShadow(*jsPath->GetPath(), offset, lightPos, lightRadius, ambientColorPara, spotColo… in OnDrawShadow()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/property/
H A Drs_properties_painter_test.cpp994 Vector4f lightPos = {1.f, 1.f, 1.f, 1.f}; // for test variable
995 lightSourcesAndPosVec.push_back(std::make_pair(newLightSource, lightPos));
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Drosen_decoration_painter.cpp2961 …SkPoint3 lightPos = { skPath.getBounds().centerX(), skPath.getBounds().centerY(), shadow.GetLightH… in PaintShadow() local
2965 …SkShadowUtils::DrawShadow(canvas, skPath, planeParams, lightPos, shadow.GetLightRadius(), ambientC… in PaintShadow()
3009 RSPoint3 lightPos = RSPoint3(drRect.GetLeft() * FLOAT_HALF + drRect.GetRight() * FLOAT_HALF, in PaintShadow() local
3014 …canvas->DrawShadow(drPath, planeParams, lightPos, shadow.GetLightRadius(), ambientColor, spotColor, in PaintShadow()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Drender_system.cpp2122 const Math::Vec3 lightPos = in ProcessShadowCamera() local
2124 …camera.matrices.view = Math::LookAtRh(lightPos, lpd.renderScene.worldSceneCenter, { 0.0f, 1.0f, 0.… in ProcessShadowCamera()