MySchoolEngine / GLEngine

The goal of this repository is to build rendering focused game engine. Feel free to join me and extend this project.
https://myschoolengine.github.io/GLEngine-Documentation/
Other
21 stars 1 forks source link

remove CURRENT_MATERIAL constant from shaders #175

Open RohacekD opened 2 years ago

RohacekD commented 2 years ago

Describe the bug This leads to magic constants in shaders and makes it harder to combine shaders together.

Expected behavior Pass current material through the functions as reference instead of filling magic constant.

RohacekD commented 2 years ago

Fix terrain fragment shader as well