OpenSceneGraph/examples/osgdeferred/CMakeLists.txt
Christian Buchner 2ef6909d9b I am hereby submitting a deferred rendering code sample, originally written by Michael Kapelko in 2013. I am submitting this code with his approval.
Deferred rendering is now the de-facto standard rendering technique in many modern game engines, hence I think it is important to have this technique demonstrated in an osg code example.

This particular sample adds soft shadows as well as bump mapping into the rendering pipeline. The image files whitemetal_diffuse.jpg and whitemetal_normal.jpg from OpenSceneGraph-Data images folder are required (The OSG_FILE_PATH environment variable must be set correctly)

Two additional osgt models are included with the demo (best to also put them into OpenSceneGraph-Data, I think.

The shaders are currently defined in separate .frag and .vert files.
2016-05-19 17:20:29 +01:00

13 lines
163 B
CMake

SET(TARGET_SRC
osgdeferred.cpp
)
SET(TARGET_H
osgdeferred.h
)
SET(TARGET_ADDED_LIBRARIES osgShadow)
#### end var setup ###
SETUP_EXAMPLE(osgdeferred)