]> git.tdb.fi Git - libs/gl.git/commit
Implement ambient lighting in the Cook-Torrance shader
authorMikko Rasa <tdb@tdb.fi>
Wed, 5 May 2021 09:10:13 +0000 (12:10 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 5 May 2021 11:36:06 +0000 (14:36 +0300)
commite05c77d2e3582a6962f42dcec0fc5f7845ff448d
tree494bf80e199f7056d4520059e47cf9e611926dfc
parenta5ad626b8f81de441f81847bfc859d742d8be4ba
Implement ambient lighting in the Cook-Torrance shader

The fresnel lookup texture used here is the same that will be needed for
image-based lighting.
builtin_data/_pbr_fresnel_lookup.glsl [new file with mode: 0644]
builtin_data/_pbr_prefilter.glsl [new file with mode: 0644]
shaderlib/cooktorrance.glsl
source/materials/pbrmaterial.cpp
source/materials/pbrmaterial.h