omega-game-engine
    Preparing search index...

    Enumeration ShaderUniformsEnum

    An enumeration of common uniform variable names used in shaders.

    These strings are used to link JavaScript variables to their corresponding uniforms in GLSL shaders, ensuring consistency and preventing typos.

    Index

    Enumeration Members

    A_BITANGENT: "a_bitangent"

    The attribute name for the bitangent vector, which can be used to pass vertex data to a shader.

    A_NORMAL: "a_normal"

    The attribute name for the normal vector, which can be used to pass vertex data to a shader.

    A_POSITION: "a_position"

    The attribute name for the position vector, which can be used to pass vertex data to a shader.

    A_TANGENT: "a_tangent"

    The attribute name for the tangent vector, which can be used to pass vertex data to a shader.

    A_UV: "a_uv"

    The attribute name for the UV coordinates, which can be used to pass texture data to a shader.

    U_AMBIENT_LIGHT: "u_ambientLight"

    The ambient light color, which can be used to simulate indirect lighting in a scene.

    U_CAMERA_POSITION: "u_cameraPosition"

    The camera position, which can be used for various purposes such as calculating the direction of light or determining the perspective of a view.

    U_CLOUD_REPETITION: "u_cloudRepetition"
    U_CLOUD_SEED: "u_cloudSeed"
    U_CLOUD_SPARSITY: "u_cloudSparsity"
    U_CLOUD_SPEED: "u_cloudSpeed"
    U_CLOUD_TILING: "u_cloudTiling"
    U_DIRECTIONAL_LIGHT_COLORS: "u_directionalLightColors[0]"

    The color of the first directional light, which can be used to simulate direct lighting in a scene.

    U_DIRECTIONAL_LIGHT_DIRECTIONS: "u_directionalLightDirections[0]"

    The direction of the first directional light, which can be used to calculate the lighting for a surface.

    U_EXPONENT: "u_exponent"

    The exponent controlling the gradient transition.

    U_FOG_BASE_HEIGHT: "u_FogBaseHeight"

    The baseline height where fog is at maximum density.

    U_FOG_COLOR: "u_FogColor"

    The color of the fog.

    U_FOG_DENSITY: "u_FogDensity"

    The density of the fog.

    U_FOG_DISTANCE: "u_fogDistance"

    The distance of the fog.

    U_FOG_ENABLED: "u_fogEnabled"

    A flag to enable or disable fog.

    U_FOG_HEIGHT_FALLOFF: "u_FogHeightFalloff"

    The exponential falloff of fog based on height.

    U_FOG_TYPE: "u_fogType"

    The type of fog (0: Linear, 1: Exp, 2: Exp2).

    U_GROUND_COLOR: "u_groundColor"

    The color of the ground.

    U_HORIZON_COLOR: "u_horizonColor"

    The color of the sky at the horizon.

    U_LIGHT_MVP_MATRIX: "u_lightMVPMatrix"

    The MVP matrix used for shadow mapping, which can be used to project a surface's geometry onto the light's plane.

    U_MAIN_TEX: "u_mainTex"

    The main texture sampler, which can be used to sample colors from a texture.

    U_MAT_COLOR: "u_matColor"

    The material color, which can be used to tint the object's appearance.

    U_MODEL_MATRIX: "u_modelMatrix"

    The model matrix, which is used to transform vertices from object space to world space.

    U_MOON_COLOR: "u_moonColor"

    The color of the moon disk in the skybox.

    U_MOON_DIRECTION: "u_moonDirection"

    The direction vector pointing towards the moon.

    U_MOON_EARTHSHINE: "u_moonEarthshine"
    U_MOON_ENABLE_ROTATION: "u_moonEnableRotation"
    U_MOON_FALLOFF: "u_moonFalloff"

    The falloff gradient size around the moon's edge.

    U_MOON_PHASE: "u_moonPhase"

    The current phase of the moon to rotate the crescent shadow.

    U_MOON_ROTATION_SPEED: "u_moonRotationSpeed"
    U_MOON_SIZE: "u_moonSize"

    The size of the solid core of the moon.

    U_MOON_TERMINATOR_SOFTNESS: "u_moonTerminatorSoftness"
    U_MVP_MATRIX: "u_mvpMatrix"

    The model-view-projection (MVP) matrix, which is used to transform vertices from object space to screen space.

    U_NORMAL_MAP_STRENGTH: "u_normalMapStrength"

    The strength value for the normal map, which can be used to control the amount of detail in a texture.

    U_NORMAL_MATRIX: "u_normalMatrix"

    The normal matrix, which is used to transform normals from tangent space to world space.

    U_NORMAL_TEX: "u_normalMap"

    The normal map sampler, which can be used to sample normals from a texture.

    U_NUM_DIRECTIONAL_LIGHTS: "u_numDirectionalLights"

    The number of directional lights in the scene.

    U_NUM_POINT_LIGHTS: "u_numPointLights"

    The number of point lights in the scene.

    U_NUM_SPOT_LIGHTS: "u_numSpotLights"

    The number of spot lights in the scene.

    U_POINT_LIGHT_COLORS: "u_pointLightColors[0]"

    The color of the first point light, which can be used to simulate direct lighting in a scene.

    U_POINT_LIGHT_CONSTANT_ATTS: "u_pointLightConstantAtts[0]"

    The constant attenuation factor for the first point light, which can be used to control the amount of light emitted by a source.

    U_POINT_LIGHT_LINEAR_ATTS: "u_pointLightLinearAtts[0]"

    The linear attenuation factor for the first point light, which can be used to control the rate at which a light's intensity decreases with distance.

    U_POINT_LIGHT_POSITIONS: "u_pointLightPositions[0]"

    The position of the first point light, which can be used to calculate the lighting for a surface.

    U_POINT_LIGHT_QUADRATIC_ATTS: "u_pointLightQuadraticAtts[0]"

    The quadratic attenuation factor for the first point light, which can be used to control the amount of light emitted by a source in relation to its position.

    U_ROUGHNESS: "u_roughness"

    The roughness value, which can be used to control the amount of detail in a texture.

    U_SCREEN_RESOLUTION: "u_screenResolution"

    The screen resolution, which can be used for various purposes such as calculating the aspect ratio or determining the size of a texture.

    U_SHADOW_MAP: "u_shadowMap"

    The shadow map texture, which stores information about the shadows cast by objects in a scene.

    U_SHADOW_MAP_SIZE: "u_shadowMapSize"

    The size of the shadow map texture.

    U_SHADOW_STRENGTH: "u_shadowStrength"

    The strength of the shadows.

    U_SKY_COLOR: "u_skyColor"

    The color of the sky at the zenith.

    U_SPECULAR_STRENGTH: "u_specularStrength"

    The specular strength, which can be used to control the amount of shine on a surface.

    U_SPOT_LIGHT_COLORS: "u_spotLightColors[0]"

    The color of the first spot light, which can be used to simulate direct lighting in a scene.

    U_SPOT_LIGHT_CONSTANT_ATTS: "u_spotLightConstantAtts[0]"

    The constant attenuation factor for the first spot light, which can be used to control the amount of light emitted by a source.

    U_SPOT_LIGHT_DIRECTIONS: "u_spotLightDirections[0]"

    The direction of the first spot light, which can be used to determine whether a point is within the spotlight's cone of illumination.

    U_SPOT_LIGHT_INNER_CONE_COS: "u_spotLightInnerConeCos[0]"

    The cosine of the inner angle of the first spot light's cone, which can be used to determine whether a point is within the spotlight's cone of illumination.

    U_SPOT_LIGHT_LINEAR_ATTS: "u_spotLightLinearAtts[0]"

    The linear attenuation factor for the first spot light, which can be used to control the rate at which a light's intensity decreases with distance.

    U_SPOT_LIGHT_OUTER_CONE_COS: "u_spotLightOuterConeCos[0]"

    The cosine of the outer angle of the first spot light's cone, which can be used to determine whether a point is within the spotlight's cone of illumination.

    U_SPOT_LIGHT_POSITIONS: "u_spotLightPositions[0]"

    The position of the first spot light, which can be used to calculate the lighting for a surface.

    U_SPOT_LIGHT_QUADRATIC_ATTS: "u_spotLightQuadraticAtts[0]"

    The quadratic attenuation factor for the first spot light, which can be used to control the amount of light emitted by a source in relation to its position.

    U_STAR_INTENSITY: "u_starIntensity"
    U_STAR_SCALE: "u_starScale"
    U_STAR_SPARSITY: "u_starSparsity"
    U_STAR_SPEED: "u_starSpeed"
    U_SUN_COLOR: "u_sunColor"

    The color of the sun disk in the skybox.

    U_SUN_DIRECTION: "u_sunDirection"

    The direction vector pointing towards the sun.

    U_SUN_FALLOFF: "u_sunFalloff"

    The falloff gradient size around the sun's edge.

    U_SUN_SIZE: "u_sunSize"

    The size of the solid core of the sun.

    U_TIME: "u_time"

    General Uniforms

    U_USE_CLOUDS: "u_useClouds"
    U_USE_MOON: "u_useMoon"

    Flag to determine if moon should be computed.

    U_USE_SHADOWS: "u_useShadows"

    A flag to enable or disable shadows.

    U_USE_STARS: "u_useStars"
    U_USE_SUN: "u_useSun"

    Flag to determine if sun should be computed.

    U_UV_OFFSET: "u_uvOffset"

    The UV offset, which can be used to shift the texture coordinates.

    U_UV_SCALE: "u_uvScale"

    The UV scale factor, which can be used to distort or stretch the texture coordinates.

    U_VIEW_MATRIX: "u_viewMatrix"

    The view matrix, which is used to transform vertices from world space to view space.

    U_WHEATHER_CONDITION: "u_weatherCondition"
    U_WORLD_INVERSE_TRANSPOSE_MATRIX: "u_worldInverseTransposeMatrix"

    The inverse transpose of the world matrix, which is used for various purposes such as transforming normals or calculating the dot product.

    U_WORLD_MATRIX: "u_worldMatrix"

    The world matrix, which is used to transform vertices from object space to world space.