Bitbybit Docs
    Preparing search index...

    Class SkyboxFromTextureDto (Inputs.BabylonScene)

    babylon.scene.enableSkyboxFromTexture 使用:你已经加载的立方体纹理,以及与内置天空相同的大小、模糊、强度、可见性和地面投影选项。

    Index

    Constructors

    • Parameters

      • Optionaltexture: BaseTexture
      • Optionalsize: number
      • Optionalblur: number
      • OptionalenvironmentIntensity: number
      • OptionalhideSkybox: boolean
      • OptionalenableGroundProjection: boolean
      • OptionalprojectedGroundRadius: number
      • OptionalprojectedGroundHeight: number

      Returns SkyboxFromTextureDto

    Properties

    texture: BaseTexture

    用来包围场景并为其提供光照的立方体纹理,例如从 .hdr.env 文件加载的纹理

    undefined
    
    size: number

    天空立方体的边长,以场景单位表示;请使其大于场景,以免有物体穿出

    1000
    

    0

    Infinity

    10

    blur: number

    可见天空的模糊程度,从 0(清晰)到 1(完全柔化);不影响光照

    0.1
    

    0

    Infinity

    0.1

    environmentIntensity: number

    天空通过反射和环境光照亮场景的强度;1 为全强度

    0.7
    

    0

    Infinity

    0.1

    hideSkybox?: boolean

    为 true 时,不绘制天空但仍照亮场景

    false
    
    enableGroundProjection?: boolean

    为 true 时,天空的下部被投影到高度为 0 的平坦地面上,使模型看起来站在环境之上并向其投射阴影

    false
    
    projectedGroundRadius?: number

    投影地面及其周围天空穹顶的半径,以场景单位表示;请让相机保持在其内部

    20
    

    0

    Infinity

    1

    projectedGroundHeight?: number

    拍摄环境时距地面的高度,以场景单位表示;地面本身始终位于高度 0

    3
    

    0

    Infinity

    0.1