Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement multiple lights and more Light types (#3246)
* lighting experiments [skip ci] * remove intermediate type, increase number of lights [skip ci] * add directional light, move lightpos transform to cpu * add attenuation * hook up interactivity to render_tick [skip ci] * squash parameters into one array * add SpotLight [skip ci] * reimplement shading [skip ci] * minor cleanup, avoid allocs [skip ci] * update RPRMakie, tweak SpotLight * switch to smoothstep for SpotLight * readd old lighting code * work around for Observables#110 * update `shading` attribute * more shading attribute updates * update more shading attributes * merge updates into one call, normalize directions * fix directions * add refimg tests * fix and test specular reflections * update docs * remove specular reflection * add pollevents in colorbuffer & tweak render_tick priority * make number of lights adjustable * cleanup some comments, todos, etc * update NEWS [skip ci] * fixes * fix screen size test * rework backlight to affect normals and apply to verbose shading * switch to world space lighting * integrate lighting with volume * minor cleanup * update backlight in other backends * minor cleanup [skip ci] * reduce allocations * fix typo * fix #2985 * minor cleanup [skip ci] * set default shading based on number of lights * switch shading to enum * update some more shading attributes * fix WGLMakie errors * fix docs * derive default shading at plot insertion * update shading conversion tests * switch to DirectionalLight by default * update test * fix specular reflection * smooth out lighting edge * fix exponent * minor optimization [skip ci] * update defaults * fix matcap * update docs * fix WGLMakie * cleanup print * fix meshscatter [skip ci] * move camera-relative light dir calc to backends * add light edge smoothing to WGLMakie * fix error * move scale_matrix to model, fix dir * do not connect transformations in different spaces * allow scene to report multiple spaces * allow empty lights vectors * fix fast lighting with incomplete light setup * move docs to references * minor cleanup * fix folder link * fix typo, try fix docs * improve example * fix missing import * clean up LScene reset_limit, fix test * fix makie tests * update WGLMakie bundle * fix nan surface in WGLMakie * consider center when updating camera * fix some merge errors * disable centering after explicit camera placement * connect transform_marker to marker/char offsets * fix axsi3 test (CairoMakie meshscatter transformation) * minor performance tweak --------- Co-authored-by: Simon <sdanisch@protonmail.com>
- Loading branch information
1 parent
7160cad
commit b82b6f7
Showing
80 changed files
with
1,572 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.