Star options

StarOptions

2024.8.27

yisky

interface StarOptions {
    starBending?: number;
    starMap: string | Texture | TextureResource;
    starMapST?: Vector4;
    twinkleBoost?: number;
    twinkleMap: string | Texture | TextureResource;
    twinkleMapST?: Vector4;
    twinkleMaskMap: string | Texture | TextureResource;
    twinkleMaskMapST?: Vector4;
    twinkleSpeed?: number;
}

Properties

starBending?: number

Changes the perspective of the stars rendering, 0 is a completely flat plane, 1.0 is warped to a full circle. I personally like a slight bend.

StarOptions

starMap: string | Texture | TextureResource

Star diffuse map

StarOptions

starMapST?: Vector4

Star diffuse map tiling and offset, Vector4( 1.0, 1.0, 0.0, 0.0 )

StarOptions

twinkleBoost?: number

Star twinkle boost

StarOptions

twinkleMap: string | Texture | TextureResource

Star twinkle map

StarOptions

twinkleMapST?: Vector4

Star twinkle map tiling and offset, Vector4( 1.0, 1.0, 0.0, 0.0 )

StarOptions

twinkleMaskMap: string | Texture | TextureResource

Star twinkle mask map

StarOptions

twinkleMaskMapST?: Vector4

Star twinkle map tiling and offset, Vector4( 1.0, 1.0, 0.0, 0.0 )

StarOptions

twinkleSpeed?: number

Star twinkle speed

StarOptions