Skip to content

fallback to point lighting if area lighting is not supported on device #49

@yellowtailfan

Description

@yellowtailfan

Area lighting requires WebGL on the user's device to support one of the following conditions:

  • WebGL 2
  • WebGL 1 with extensions OES_texture_float and OES_texture_float_linear
  • WebGL 1 with extensions OES_texture_half_float and OES_texture_half_float_linear

Many modern devices do meet one of these conditions, but if a material is set to area lighting and all of the above conditions fail, then currently Bivot renders without any lighting and gives a very dark appearance (the render in such cases is uses ambient illumination only).

An improvement would be to detect when area lighting is not supported, and fall back to point lighting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions