omega-game-engine
    Preparing search index...

    A shader designed specifically for rendering skyboxes using a cubemap texture. *

    Hierarchy (View Summary)

    Indexable

    • [key: string]: any
    Index

    Constructors

    Properties

    _buffers: WebGLBuffers = ...
    _className: string = "SkyboxShader"
    _serializationIgnoreKeys: string[]
    _shaderProgram: WebGLProgram
    _uuid: string
    clouds: {
        cloudRepetition: number;
        cloudSeed: number;
        cloudSparsity: number;
        cloudSpeed: number;
        cloudTiling: number;
        useClouds: boolean;
        wheatherCondition: number;
    } = ...
    fragmentSource: null | string = null
    fragUri: string = ShaderSources.frag.color
    gl: WebGL2RenderingContext
    material: SkyboxMaterial

    The cubemap material associated with this shader. *

    moon: {
        moonColor: Color;
        moonDirection: Vector3;
        moonEarthshine: number;
        moonEnableRotation: number;
        moonFalloff: number;
        moonPhase: number;
        moonRotationSpeed: number;
        moonSize: number;
        moonTerminatorSoftness: number;
        useMoon: boolean;
    } = ...
    name: string = ''
    stars: {
        starIntensity: number;
        starScale: number;
        starSparsity: number;
        starSpeed: number;
        useStars: boolean;
    } = ...
    sun: {
        sunColor: Color;
        sunDirection: Vector3;
        sunFalloff: number;
        sunSize: number;
        useSun: boolean;
    } = ...
    vertexSource: null | string = null
    vertexUri: string = ShaderSources.vertex.default
    SHADER_FUNCTIONS: { [key: string]: string } = ...

    A map of string keys to URLs for reusable shader function files. *

    Accessors

    • get initialized(): boolean

      Returns boolean

    • get shaderProgram(): WebGLProgram

      Returns WebGLProgram

    Methods

    • Deserializes the object from a JSON-compatible data structure.

      • This method is intended to be overridden by subclasses to handle their specific properties.

      Parameters

      Returns void

    • Initializes the shader by setting the correct file paths for the vertex and fragment shaders before calling the parent initialize method. * *

      Returns Promise<boolean>

    • Binds a cubemap texture to a uniform in the shader. * *

      Parameters

      • name: string

        The name of the uniform. *

      • texture: CubemapTexture

        The cubemap texture object. *

      • textureIndex: number

        The texture unit index to bind to. *

      Returns void