Skip to content

Fix DiskLight injects too much energy when sampling a texture#20

Open
jlanz wants to merge 1 commit into
OpenMoonRay:mainfrom
dreamworksanimation:export/MOONRAY-6033
Open

Fix DiskLight injects too much energy when sampling a texture#20
jlanz wants to merge 1 commit into
OpenMoonRay:mainfrom
dreamworksanimation:export/MOONRAY-6033

Conversation

@jlanz
Copy link
Copy Markdown
Contributor

@jlanz jlanz commented Jun 2, 2026

Resolves OpenMoonRay/openmoonray#250
Fixed biased result due to excess energy from textured DiskLight.

DiskLight::sample() should immediately reject the sampled point if it falls outside the disk.

Signed-off-by: Jon Lanz jon.lanz@dreamworks.com

* Fix bug

* Vectorise fix

* Fix typo

* Fix indentation

Signed-off-by: Jon Lanz <jon.lanz@dreamworks.com>
@jlanz jlanz requested a review from a team June 2, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DiskLight::sample() function injects too much energy when sampling a textured DiskLight

2 participants