+3
Under review

Cheaper Light Mode, specifically for Lightmaps?

robert briscoe 11 years ago updated by Freya Holmér (Developer) 10 years ago 3

So I'm wondering if there could be a cheaper Light mode for shaders with lightmaps, since single lightmapped shaders don't require any lighting info at all, and directional lightmaps have a lot of the lighting info baked in for specular and normals. 


Right now, 60+ instructions seems quite heavy for a non-dynamic lit shader

Answer

Answer
Under review
The instruction counter is broken a the moment, but SF in general does pretty much everything in the fragment shader, including lighting, which isn't optimal when you want to reduce instructions. Vertex lighting and all is planned, and should work along with the lightmaps down the line!

Planned

The instruction counter is broken a the moment, but SF in general does pretty much everything in the fragment shader, including lighting, which isn't optimal when you want to reduce instructions. Vertex lighting and all is planned, and should work along with the lightmaps down the line!

Hi, any idea for when this is planned? Because it would we a great improvement if we could use the cheaper vertex lights and of course is the pixel light usage limited in forward rendering.
Thx. Still like the editor a lot!! Great work.
We'll see if this gets done or not, it's a bit of a complex issue. There are a ton of other things that has priority at the moment. However, vertex lighting is planned!
Answer
Under review
The instruction counter is broken a the moment, but SF in general does pretty much everything in the fragment shader, including lighting, which isn't optimal when you want to reduce instructions. Vertex lighting and all is planned, and should work along with the lightmaps down the line!

Ok I will wait:) thx