Mohido / BRDFA_Engine

A 3D engine for the purposes of analyzing different "Bidirectional Reflectance Distribution Function"s over environment maps.
GNU General Public License v3.0
1 stars 0 forks source link

Shader Code Distribution And Multiple Pipelines #27

Closed Mohido closed 2 years ago

Mohido commented 2 years ago

The main() function should be in a seperate glsl shader and the brdfs should reside in another shader as well. The brdf shaders can be put in a folder under brdfs. The BRDFs will contain the saved BRDFs as well as our default BRDFs. With this issue, we need to define multiple pipelines. Pipelines are referred by the brdf shader file name.

Mohido commented 2 years ago

I have done this issue, now we have a real-time shaders loading as well as, shader files are distributed into main.frag and brdfs/*.brdf. The current implementation is slow but it works for now.