Bitbybit Docs
    Preparing search index...

    Class SkyboxCustomTextureDto (Inputs.BabylonScene)

    babylon.scene.enableSkyboxCustomTexture 使用:通过 URL 指定你自己的天空纹理、其尺寸,以及与内置天空相同的大小、模糊、强度和可见性选项。

    Index

    Constructors

    • Parameters

      • OptionaltextureUrl: string
      • OptionaltextureSize: number
      • Optionalsize: number
      • Optionalblur: number
      • OptionalenvironmentIntensity: number
      • OptionalhideSkybox: boolean
      • OptionalenableGroundProjection: boolean
      • OptionalprojectedGroundRadius: number
      • OptionalprojectedGroundHeight: number

      Returns SkyboxCustomTextureDto

    Properties

    textureUrl?: string

    .hdr 文件、.env 文件或六张立方体面图像根路径的地址;没有它则什么也不会发生

    undefined
    

    true

    textureSize?: number

    加载天空纹理的分辨率,以每面像素数表示;用于 .hdr 文件

    512
    

    true

    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