openharmony 鸿蒙 js-apis-inner-scene-resources-sys

2026-08-25 浏览 (1)

SceneResource (System API)

The module provides basic resource types in 3D graphics.

NOTE

  • The initial APIs of this module are supported since API version 12. Newly added APIs will be marked with a superscript to indicate their earliest API version.
  • This topic describes only system APIs provided by the module. For details about its public APIs, see SceneResources.

Modules to Import

import { MaterialType, UnlitShadowAlphaMaterial } from '@kit.ArkGraphics3D';

MaterialType

Enumerates the material types in a scene. The material type defines how materials in a scene are rendered.

System capability: SystemCapability.ArkUi.Graphics3D

NameValueDescription
UNLIT_SHADOW_ALPHA23+100Draws only shadows. When the Blend property of the material is enabled, the material is blended with the background to simulate a transparent material effect.
System API: This is a system API.
Model restriction: This API can be used only in the stage model.

UnlitShadowAlphaMaterial23+

This material inherits from Material and draws only the surface shadows. When the Blend property is enabled, the material can be blended with the background to simulate transparency.

System capability: SystemCapability.ArkUi.Graphics3D

System API: This is a system API.

Model restriction: This API can be used only in the stage model.

NameTypeRead-OnlyOptionalDescription
baseColorMaterialPropertyNoNoColor information of the shadow on the surface of a transparent material.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 js-apis-scene

openharmony 鸿蒙 js-apis-inner-scene-nodes

openharmony 鸿蒙 js-apis-inner-scene-post-process-settings

openharmony 鸿蒙 Readme-EN

openharmony 鸿蒙 js-apis-inner-scene-resources

openharmony 鸿蒙 js-apis-inner-scene-types

openharmony 鸿蒙 js-apis-inner-scene

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/B359Pk3z