]> git.tdb.fi Git - libs/gl.git/commit
Use specialization constants in the builtin material shaders
authorMikko Rasa <tdb@tdb.fi>
Fri, 26 Feb 2021 23:27:16 +0000 (01:27 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 26 Feb 2021 23:27:54 +0000 (01:27 +0200)
commit842c817bb679a5a0abc05e8149e2e6e0ae1a0412
tree0cee06a3397a86cf3e7c8599f6d1edca95d5e0f4
parent0912a8d73043961ab7a4d66cd2fbb13187483ffd
Use specialization constants in the builtin material shaders

This has the side effect that RenderPass now requires a collection
to use the builtin shaders.
13 files changed:
shaderlib/common.glsl
shaderlib/cooktorrance.glsl
shaderlib/phong.glsl
shaderlib/shadow.glsl
source/materials/basicmaterial.cpp
source/materials/basicmaterial.h
source/materials/material.cpp
source/materials/material.h
source/materials/pbrmaterial.cpp
source/materials/pbrmaterial.h
source/materials/renderpass.cpp
source/materials/unlitmaterial.cpp
source/materials/unlitmaterial.h