]> git.tdb.fi Git - libs/gl.git/commit - source/materials/renderpass.cpp
Implement image-based lighting in PbrMaterial
authorMikko Rasa <tdb@tdb.fi>
Thu, 6 May 2021 08:16:05 +0000 (11:16 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 6 May 2021 10:32:46 +0000 (13:32 +0300)
commit6b9338845dfee441cd18ad6c633e4feef8ad14e1
tree4e5b7573f858dec98dcf06435f83708f0977d834
parent87b74b1263710b0acb9e0b72283e972fd54ee91b
Implement image-based lighting in PbrMaterial

EnvironmentMap now has a constructor with an extra parameter indicating
the number of mipmap levels to use for prefiltering with varying amounts
of roughness.
15 files changed:
blender/io_mspgl/export_material.py
blender/io_mspgl/material.py
blender/io_mspgl/properties.py
builtin_data/_envmap_irradiance.glsl [new file with mode: 0644]
builtin_data/_envmap_specular.glsl [new file with mode: 0644]
builtin_data/_mip_clamp.samp [new file with mode: 0644]
builtin_data/_pbr_prefilter.glsl
shaderlib/common.glsl
shaderlib/cooktorrance.glsl
shaderlib/cubemap_effect.glsl [new file with mode: 0644]
source/effects/environmentmap.cpp
source/effects/environmentmap.h
source/materials/pbrmaterial.cpp
source/materials/renderpass.cpp
source/materials/renderpass.h