2016-10-28 13:39:27 +00:00
|
|
|
if (NOT DEFINED OPENMW_SHADERS_ROOT)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2015-10-26 20:36:19 +00:00
|
|
|
# Copy resource files into the build directory
|
|
|
|
set(SDIR ${CMAKE_CURRENT_SOURCE_DIR})
|
2017-10-11 20:58:55 +00:00
|
|
|
set(DDIRRELATIVE resources/shaders)
|
2015-10-26 20:36:19 +00:00
|
|
|
|
|
|
|
set(SHADER_FILES
|
|
|
|
water_vertex.glsl
|
|
|
|
water_fragment.glsl
|
|
|
|
water_nm.png
|
2016-02-16 17:18:48 +00:00
|
|
|
objects_vertex.glsl
|
|
|
|
objects_fragment.glsl
|
2016-02-19 00:30:15 +00:00
|
|
|
terrain_vertex.glsl
|
|
|
|
terrain_fragment.glsl
|
2016-02-17 22:29:26 +00:00
|
|
|
lighting.glsl
|
2016-03-22 20:15:20 +00:00
|
|
|
parallax.glsl
|
2017-12-01 18:54:48 +00:00
|
|
|
s360_fragment.glsl
|
|
|
|
s360_vertex.glsl
|
2018-06-24 22:40:52 +00:00
|
|
|
shadows_vertex.glsl
|
|
|
|
shadows_fragment.glsl
|
2018-10-16 20:23:31 +00:00
|
|
|
shadowcasting_vertex.glsl
|
|
|
|
shadowcasting_fragment.glsl
|
2015-10-26 20:36:19 +00:00
|
|
|
)
|
|
|
|
|
2017-10-11 20:58:55 +00:00
|
|
|
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_SHADERS_ROOT} ${DDIRRELATIVE} "${SHADER_FILES}")
|