-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Feature Request / ProposalRequest a feature or propose an ideaRequest a feature or propose an ideaenhancement
Milestone
Description
private int singlePassLightBatchSize = 1; |
There’s no reason to prefer multipass lighting in this day and age.
We should default to single-pass lighting by setting this value to anything greater than 1.
It might also be a good idea to have the render manager automatically scale this value up to match the number of lights required by the model with the most lights it renders, with an upper limit of eg. 16 .
pseudo code:
void render(Spatial sp){
....
int nlights = sp.getWorldLights().size();
nlights = min(nlights, 16);
if(nlights>0&&nlights>singlePassLightBatchSize){
setSinglePassLightBatchSize(nlights);
}
....
}
yaRnMcDonuts
Metadata
Metadata
Assignees
Labels
Feature Request / ProposalRequest a feature or propose an ideaRequest a feature or propose an ideaenhancement