Romain Guy
04ada346b0
Materials can now provide custom lighting/shading ( #4142 )
...
* Materials can now provide custom lighting/shading
When a material uses the "lit" shading model, customSurfaceShading can
be enabled to replace Filament's lighting implementation. When this
feature is enabled, the material *must* provide the following function
in the fragment shader block:
vec3 surfaceShading(
const MaterialInputs materialInputs,
const ShadingData shadingData,
const LightData lightData
) {
return vec3(1.0); // custom lighting here
}
Please refer to the docs in Materials.html for more information about
this feature and the different values provided by the data structures
passed to the function.
* Update docs
* Update docs/Materials.md.html
Co-authored-by: Philip Rideout <philiprideout@gmail.com >
Co-authored-by: Philip Rideout <philiprideout@gmail.com >
2021-06-16 09:53:58 -07:00
..
2019-02-21 11:44:52 -08:00
2020-12-12 11:07:40 -08:00
2020-10-06 11:03:55 -06:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-21 15:51:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-03 10:38:22 -07:00
2018-08-06 10:36:54 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2020-02-05 17:45:03 -08:00
2018-08-06 10:36:54 -07:00
2020-03-29 17:00:03 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-09 17:41:07 -07:00
2018-08-15 13:57:48 -07:00
2018-08-15 13:57:48 -07:00
2018-08-06 10:36:54 -07:00
2018-08-16 16:44:00 -07:00
2019-02-15 09:26:52 +00:00
2018-08-03 10:38:22 -07:00
2018-08-06 10:36:54 -07:00
2020-01-30 17:43:21 -08:00
2018-08-16 16:44:00 -07:00
2019-02-15 09:26:52 +00:00
2018-08-15 13:57:48 -07:00
2018-08-06 10:36:54 -07:00
2020-02-05 17:45:03 -08:00
2018-08-15 13:13:48 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-06 10:36:54 -07:00
2018-08-22 16:29:32 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-22 16:29:32 -07:00
2019-02-27 10:30:46 -08:00
2018-08-24 08:56:44 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-06 10:36:54 -07:00
2018-09-24 12:54:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-06 10:36:54 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2019-05-18 14:30:08 -07:00
2019-05-18 14:30:08 -07:00
2018-08-06 10:36:54 -07:00
2018-08-03 10:38:22 -07:00
2018-08-06 10:36:54 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2018-08-06 10:36:54 -07:00
2020-12-12 11:07:40 -08:00
2019-05-18 14:30:08 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-06 10:36:54 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2021-06-16 09:53:58 -07:00
2018-08-06 10:36:54 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-06 10:36:54 -07:00