Skip to content

Infinite radius point lights might cause type overflow #2566

@riccardobl

Description

@riccardobl

There is this workaround in place to prevent the engine from dealing with infinite radius lights:

if (radius == Float.POSITIVE_INFINITY) {
radius = Float.MAX_VALUE;
}

but it might still lead to unexpected behavior due to type overflow in the shaders' math and potentially in other places in the engine.

A better workaround would be to limit the radius to MAX_VALUE/4 or something like that.

Afaik infinite radius point lights are used only by the gltf loader, and will not be used anymore after #2549 .
This might also be connected to #2565

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectSomething that is supposed to work, but doesn't. Less severe than a "bug"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions