2021-12-08 13:33:49 +00:00
|
|
|
if (NOT DEFINED OPENMW_RESOURCES_ROOT)
|
2016-10-28 13:39:27 +00:00
|
|
|
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
|
2020-01-12 07:42:47 +00:00
|
|
|
groundcover_vertex.glsl
|
|
|
|
groundcover_fragment.glsl
|
2015-10-26 20:36:19 +00:00
|
|
|
water_vertex.glsl
|
|
|
|
water_fragment.glsl
|
|
|
|
water_nm.png
|
2020-12-16 23:44:15 +00:00
|
|
|
alpha.glsl
|
2021-06-01 19:15:25 +00:00
|
|
|
depth.glsl
|
2016-02-16 17:18:48 +00:00
|
|
|
objects_vertex.glsl
|
|
|
|
objects_fragment.glsl
|
2022-04-26 17:54:24 +00:00
|
|
|
openmw_fragment.glsl
|
|
|
|
openmw_fragment.h.glsl
|
2022-04-24 15:29:16 +00:00
|
|
|
openmw_fragment_multiview.glsl
|
2022-04-26 17:54:24 +00:00
|
|
|
openmw_vertex.glsl
|
|
|
|
openmw_vertex.h.glsl
|
2022-04-24 15:29:16 +00:00
|
|
|
openmw_vertex_multiview.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
|
2021-04-08 19:42:11 +00:00
|
|
|
lighting_util.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
|
2020-12-19 17:17:42 +00:00
|
|
|
vertexcolors.glsl
|
2022-06-21 15:55:06 +00:00
|
|
|
multiview_resolve_vertex.glsl
|
|
|
|
multiview_resolve_fragment.glsl
|
2020-12-16 21:46:09 +00:00
|
|
|
nv_default_vertex.glsl
|
|
|
|
nv_default_fragment.glsl
|
|
|
|
nv_nolighting_vertex.glsl
|
|
|
|
nv_nolighting_fragment.glsl
|
2022-05-14 01:58:00 +00:00
|
|
|
blended_depth_postpass_vertex.glsl
|
|
|
|
blended_depth_postpass_fragment.glsl
|
2021-07-22 22:55:30 +00:00
|
|
|
gui_vertex.glsl
|
|
|
|
gui_fragment.glsl
|
2021-07-09 17:05:27 +00:00
|
|
|
debug_vertex.glsl
|
|
|
|
debug_fragment.glsl
|
2021-10-24 00:53:38 +00:00
|
|
|
sky_vertex.glsl
|
|
|
|
sky_fragment.glsl
|
|
|
|
skypasses.glsl
|
2021-10-20 16:42:18 +00:00
|
|
|
softparticles.glsl
|
2022-07-23 03:41:08 +00:00
|
|
|
hdr_resolve_fragment.glsl
|
2022-05-14 01:58:00 +00:00
|
|
|
hdr_luminance_fragment.glsl
|
|
|
|
fullscreen_tri_vertex.glsl
|
|
|
|
fullscreen_tri_fragment.glsl
|
2022-06-06 20:40:38 +00:00
|
|
|
fog.glsl
|
2015-10-26 20:36:19 +00:00
|
|
|
)
|
|
|
|
|
2021-12-08 13:33:49 +00:00
|
|
|
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_RESOURCES_ROOT} ${DDIRRELATIVE} "${SHADER_FILES}")
|