KhronosGroup / KhronosGroup/glTF-Sample-Viewer

No specular from lights when roughness=0

Open
#547 6 comments 0 reactions 2 assignees Claimed by @UX3D-kanzler View on GitHub
bug needs discussion
Dominant language
JavaScript
Stars
1.5k
Forks
264
Avg merge
5h 49m
Merged PRs (30d)
1

Description

There are no specular highlights when roughness = 0.0
The likely cause for this is that the NDF function needs to limit roughness to a small value.

Since glTF does not use solid angle for lights, most engines use a simplified model where the NDF will create specular lobe using roughness.
However, values of 0.0 roughness will not produce any specular at all.

![image](https://github.com/KhronosGroup/glTF-Sample-Viewer/assets/3063192/85f81969-d6a9-486c-bfcf-8ff930003af4)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.