[FONT=&]Hey so i’m doing a game mostly made in sand and concrete so oren nayar is way better then the default lambert, in 4.17 i was able to switch from lambert to oren nayar with this fonction in the shadingmodels.ush : [FONT=&]
Well, it seems that they split it up between ShadingModels.ush and BRDF.ush.
On BRDF you’ll find the three methods defined as functions. I havne’t tried yet but ShadingModels inherit from BRDF so you probably should change the six calls to this function.
You need to change the DefaultLitBxDF function in ShadingModels to use the Diffuse_OrenNayar diffuse model. You’ll need to add in the missing variables that Oren-Nayar needs to call it correctly.