]> git.tdb.fi Git - libs/gl.git/commit - tools/viewer.cpp
Split the Light class into subclasses by light type
authorMikko Rasa <tdb@tdb.fi>
Wed, 6 Oct 2021 08:15:42 +0000 (11:15 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 6 Oct 2021 21:13:22 +0000 (00:13 +0300)
commitadc26a2e141a2853b6c5025130c46a46cece4b84
tree16985a3b68b16b6edcf8d77a3235dfb8b5ae3d77
parente6e6f0fe81a2f92985e65ae0de708974194d81a3
Split the Light class into subclasses by light type

There are some cases where it would be inconvenient for a light to
suddenly change type.
18 files changed:
blender/io_mspgl/export_light.py
demos/desertpillars/source/desertpillars.cpp
shaderlib/cooktorrance.glsl
shaderlib/msp_interface.glsl
shaderlib/phong.glsl
source/effects/shadowmap.cpp
source/effects/shadowmap.h
source/effects/sky.cpp
source/effects/sky.h
source/materials/directionallight.cpp [new file with mode: 0644]
source/materials/directionallight.h [new file with mode: 0644]
source/materials/light.cpp
source/materials/light.h
source/materials/lighting.cpp
source/materials/pointlight.cpp [new file with mode: 0644]
source/materials/pointlight.h [new file with mode: 0644]
source/resources/resources.cpp
tools/viewer.cpp