mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
refactor GLSLExtension
This commit is contained in:
parent
1feee3a809
commit
6043ae8331
4 changed files with 71 additions and 51 deletions
|
|
@ -73,9 +73,10 @@ assetload::postfunc assetload::shader(
|
|||
std::string vertexSource = io::read_string(vertexFile);
|
||||
std::string fragmentSource = io::read_string(fragmentFile);
|
||||
|
||||
vertexSource = Shader::preprocessor->process(vertexFile, vertexSource);
|
||||
fragmentSource =
|
||||
Shader::preprocessor->process(fragmentFile, fragmentSource);
|
||||
auto& preprocessor = *Shader::preprocessor;
|
||||
|
||||
vertexSource = preprocessor.process(vertexFile, vertexSource).code;
|
||||
fragmentSource = preprocessor.process(fragmentFile, fragmentSource).code;
|
||||
|
||||
return [=](auto assets) {
|
||||
assets->store(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue