bevyengine / bevyengine/bevy

KHR_lights_punctual spot light range not interpeted correctly

Open
#13,319 0 comments 0 reactions 0 assignees View on GitHub
A-glTF A-Rendering C-Bug
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version Main https://github.com/bevyengine/bevy/commit/dcb8a13b223fbc9425f7af01b3941dd80a229384, 0.13

A spotlight described in a glTF with a range of 3 with result in a light with both a range and a radius of 3.

The range is used to define a distance cutoff at which the light's intensity may be considered to have reached zero. But the radius is used to describe the size of the emitting light source.

A glTF with a spot light with a range of 3 and a radius of 0:
![bevy_spot_range](https://github.com/bevyengine/bevy/assets/33357138/85386ad0-c1ce-4a5a-b132-fe92c059e10f)

Blender:
![blender_spot_range](https://github.com/bevyengine/bevy/assets/33357138/02d76dc1-c0db-44bb-be83-a4756d9c1455)

The point light appears to translate the range correctly. Unfortunately, KHR_lights_punctual does not support light radius.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.