Commit 2b00e52
* Fix PointLight infinite radius shader overflow(#2566)
Clamps infinite, negative, or Not a Number radius to Float.MAX_VALUE / 4f
to prevent type overflow in shaders, as discussed in #2566.
* Address Requested Changed from Codex
* Update PointLight.java
---------
Co-authored-by: Ryan McDonough <peanut64646@gmail.com>
1 parent 9665dcf commit 2b00e52
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 168 | + | |
| 169 | + | |
171 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
| |||
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
| 264 | + | |
| 265 | + | |
0 commit comments