Jump to content
  • Advertisement
Pepsidog

3D What is the cheapest lighting model?

Recommended Posts

I am making a mobile vr game.  It will be in lowpoly style, and I am trying to find the most computationally inexpensive lighting model that has lighting.  I have heard of PBR, lambertian, half lambertian, and phong, but I don’t know the performance of each of them.

Share this post


Link to post
Share on other sites
Advertisement

Lambertian diffuse is about as cheap as you can get (the BRDF is effectively a constant). So I would start with that if you really want to go cheap. Later on you can see about adding in some simple Blinn-Phong specular if you have the headroom for it.

Share this post


Link to post
Share on other sites

If the light is dynamic then dot produxt of fragment normal and light to fragment pos, (not including shadows) (somewhat phong but witout use of exp)

For static nonchangeable light use lightmaps.... Anyway both will give you poor performance when managing big screen resolutions

Share this post


Link to post
Share on other sites
Posted (edited)

How would you actually create a lambertian diffuse per vertex diffuse shader for unity?  I have decent shader knowledge.

Edited by Pepsidog
Forgot details.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!