Skip to content

A test to see if Three.js point lights can be shader optimized to branch out of the light loop if pixel is outside the light's range

Notifications You must be signed in to change notification settings

DolphinIQ/threejs-point-lights-optimization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run

To run clone the repo, install dependencies and start a local server.

Test the difference with and without the optimization by commenting out the editTHREE() function call inside the init(). FPS and GPU profilers are both available.

About

A test to see if Three.js point lights can be shader optimized to branch out of the light loop if pixel is outside the light's range

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published