Home
last modified time | relevance | path

Searched refs:sh (Results 1 - 18 of 18) sorted by relevance

/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/
H A D3d_dm_indirect_lighting_common.h46 vec3 unpackIblIrradianceSH(vec3 n, vec4 sh[CORE_DEFAULT_MATERIAL_MAX_SH_VEC3_VALUE_COUNT]) in unpackIblIrradianceSH() argument
49 return max(vec3(0.0), sh[0].xyz in unpackIblIrradianceSH()
51 + sh[1].xyz * n.y + sh[2].xyz * n.z + sh[3].xyz * n.x in unpackIblIrradianceSH()
53 + sh[4].xyz * (n.x * n.y) + sh[5].xyz * (n.z * n.y) + in unpackIblIrradianceSH()
54 sh[6].xyz * ((3.0 * n.z * n.z) - 1.0) + sh[7].xyz * (n.x * n.z) + in unpackIblIrradianceSH()
55 sh[ in unpackIblIrradianceSH()
[all...]
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Dgraphicsstate_impl.cpp56 if (auto sh = SceneHolder()) {
57 sh->QueueApplicationTask(META_NS::MakeCallback<META_NS::ITaskQueueTask>(
58 [st = state, sh = sh_, material = BASE_NS::weak_ptr(mat), type = ix_]() {
59 if (auto sceneHolder = sh.lock()) {
75 if (auto sh = SceneHolder()) {
76 sh->QueueApplicationTask(
77 META_NS::MakeCallback<META_NS::ITaskQueueTask>([sh = sh_, material = BASE_NS::weak_ptr(mat), type = ix_,
79 if (auto sceneHolder = sh.lock()) {
98 void SetSceneHolder(const SceneHolder::WeakPtr& sh) override
100 sh_ = sh;
[all...]
H A Dcamera_impl.cpp158 auto sh = SceneHolder();
159 auto ecs = sh->GetEcs();
162 entity = sh->CreatePostProcess();
166 interface_cast<IPostProcessPrivate>(postProcessBridge)->SetEntity(entity, sh, false);
172 auto sh = SceneHolder();
173 auto ecs = sh->GetEcs();
179 ppo->SetEntity(entity, sh, true);
257 if (auto sh = SceneHolder()) {
258 sh->QueueEngineTask(MakeTask(
260 target = GetSelf<SCENE_NS::IEcsObject>()->GetEntity()](auto sh) {
[all...]
H A Drender_configuration_impl.cpp45 void Connect(SceneHolder::Ptr sh) override
52 sh_ = sh;
55 proxyIf->SetCommonListener(sh->GetCommonEcsListener());
58 auto ecs = sh->GetEcs();
60 auto renderConfiguration = sh->CreateRenderConfiguration();
64 propHandler_.SetSceneHolder(sh);
H A Dmultimesh_impl.cpp43 if (auto sh = sceneHolder_.lock()) {
44 sh->QueueEngineTask(MakeTask(
81 if (auto sh = sceneHolder) {
82 sh->QueueEngineTask(MakeTask(
101 if (auto sh = self->sceneHolder_.lock()) {
102 sh->QueueEngineTask(MakeTask([weak]() {
127 if (auto sh = self->sceneHolder_.lock()) {
128 sh->QueueEngineTask(
166 if (auto sh = self->sceneHolder_.lock()) {
167 sh
[all...]
H A Dpostprocess_effect_impl.cpp119 void Bind(SCENE_NS::IEcsObject::Ptr ecsObject, SceneHolder::Ptr sh, bool preferEcsValues) override
124 propHandler_.SetSceneHolder(sh);
138 DirtMaskImage()->OnChanged()->AddHandler(META_NS::MakeCallback<META_NS::IOnChanged>([sh, this]() {
139 sh->QueueEngineTask(
141 [target = ecsObject_->GetEntity(), image = META_NS::GetValue(DirtMaskImage())](auto sh) {
142 CORE_NS::Entity imageEntity = sh->BindUIBitmap(image, true);
143 sh->SetRenderHandle(target, imageEntity);
146 sh),
151 renderHandle->OnChanged()->AddHandler(META_NS::MakeCallback<META_NS::IOnChanged>([sh, this]() {
158 if (sh
[all...]
H A Dpostprocess_impl.cpp156 void SetEntity(CORE_NS::Entity entity, SceneHolder::Ptr sh, bool preferEcsValues) override
163 sh_ = sh;
166 proxyIf->SetCommonListener(sh->GetCommonEcsListener());
169 auto ecs = sh->GetEcs();
173 tonemap->Bind(ecsObject_, sh, preferEcsValues);
176 bloom->Bind(ecsObject_, sh, preferEcsValues);
179 vignette->Bind(ecsObject_, sh, preferEcsValues);
182 colorFringe->Bind(ecsObject_, sh, preferEcsValues);
185 dither->Bind(ecsObject_, sh, preferEcsValues);
188 fxaa->Bind(ecsObject_, sh, preferEcsValue
[all...]
H A Dtextureinfo_impl.cpp73 auto sh = params->GetPropertyByName<uintptr_t>("sceneHolder")->GetValue(); variable
74 holder_.SetSceneHolder(*((SceneHolder::Ptr*)sh));
108 auto sh = holder_.GetSceneHolder(); in ArrayChanged() local
109 auto bitmap = ImageConverter::ToUi(*sh, curVal.image); in ArrayChanged()
128 auto sh = holder_.GetSceneHolder(); in ImageChanged() local
129 curVal.image = ImageConverter::ToEcs(*sh, Image()->GetValue()); in ImageChanged()
H A Dintf_postprocess_private.h28 virtual void SetEntity(CORE_NS::Entity entity, SceneHolder::Ptr sh, bool preferEcsValues) = 0;
36 virtual void Bind(SCENE_NS::IEcsObject::Ptr, SceneHolder::Ptr sh, bool preferEcsValues) = 0;
H A Dshader_impl.cpp72 void SetSceneHolder(const SceneHolder::WeakPtr& sh) override
74 sh_ = sh;
H A Dnode_impl.cpp153 auto sh = weak_sh.lock(); in Activate()
154 if (sh) { in Activate()
155 sh->SetEntityActive(e, true); in Activate()
156 sh->ReparentEntity(e, path, index); in Activate()
173 auto sh = weak_sh.lock(); in Deactivate()
174 if (sh) { in Deactivate()
175 sh->SetEntityActive(e, false); in Deactivate()
1219 auto sh = SceneHolder(); in ReleaseEntityOwnership() local
1220 if (sh) { in ReleaseEntityOwnership()
1227 if (sh) { in ReleaseEntityOwnership()
[all...]
H A Dmesh_impl.cpp389 if (auto sh = SceneHolder()) { in UpdateMeshFromArrays()
395 sh->QueueEngineTask(MakeTask( in UpdateMeshFromArrays()
398 if (auto sh = privateIntf->SceneHolder()) { in UpdateMeshFromArrays()
400 auto newEntity = sh->template CreateMeshFromArrays<INDEX_TYPE>( in UpdateMeshFromArrays()
402 sh->QueueApplicationTask( in UpdateMeshFromArrays()
447 if (auto sh = SceneHolder()) {
448 sh->QueueEngineTask(MakeTask(
H A Dintf_resource_private.h28 virtual void Connect(SceneHolder::Ptr sh) = 0;
H A Dmaterial_impl.cpp141 auto sh = w.lock();
142 if (sh) {
143 sh->SetEntityActive(e, true);
159 auto sh = w.lock();
160 if (sh) {
161 sh->SetEntityActive(e, false);
245 [uri, entityId = EcsObject()->GetEntity().id, arrayIndex](auto sh) { in ApplyTextureInfoImage()
247 auto image = sh->LoadImage(uri); in ApplyTextureInfoImage()
248 sh->SetTexture(arrayIndex, target, image); in ApplyTextureInfoImage()
258 [entity = EcsObject()->GetEntity(), arrayIndex](auto sh) { in ApplyTextureInfoImage()
[all...]
H A Dintf_node_private.h78 virtual void SetSceneHolder(const SceneHolder::WeakPtr& sh) = 0;
H A Dscene_impl.cpp1529 if (auto sh = weakSh.lock()) {
1531 if (sh->GetWorldAABB(ret, w, min, max)) {
1532 sh->QueueApplicationTask(META_NS::MakeCallback<META_NS::ITaskQueueTask>([weakRet]() {
1563 if (auto sh = weakSh.lock()) {
1565 if (sh->RayCast(ret, origin, dir)) {
1566 sh->QueueApplicationTask(META_NS::MakeCallback<META_NS::ITaskQueueTask>([weakRet,
1606 if (auto sh = weakSh.lock()) {
1608 if (sh->RayCast(ret, origin, dir, layerMask)) {
1609 sh->QueueApplicationTask(META_NS::MakeCallback<META_NS::ITaskQueueTask>([weakRet,
/foundation/arkui/napi/jsvm/
H A Dbuild_jsvm.sh25 source ${SCRIPT_PATCH}/build_jsvm_inter.sh
/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/
H A Drender_backend_gles.cpp141 const GLint sh = static_cast<const GLint>(src.rect1.height); in DoBlit() local
143 sy = sfh - (sy + sh); in DoBlit()

Completed in 15 milliseconds