ad070909a3
CoverSwitch uses new concept of combining a custom fragment shader with the built-in generic vertex shader. This shader is used to render the reflection plane on top of the reflected windows. The fragment shader uses two uniform colors for front and back and interpolates between them based on the texcoords (which are not used for texture lookup). The reflection plane vertices could be buffered.
31 lines
745 B
CMake
31 lines
745 B
CMake
#######################################
|
|
# Effect
|
|
|
|
# Source files
|
|
set( kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
|
coverswitch/coverswitch.cpp
|
|
)
|
|
|
|
# .desktop files
|
|
install( FILES
|
|
coverswitch/coverswitch.desktop
|
|
DESTINATION ${SERVICES_INSTALL_DIR}/kwin )
|
|
|
|
install( FILES
|
|
coverswitch/coverswitch-reflection.glsl
|
|
DESTINATION ${DATA_INSTALL_DIR}/kwin )
|
|
|
|
|
|
#######################################
|
|
# Config
|
|
|
|
# Source files
|
|
set( kwin4_effect_builtins_config_sources ${kwin4_effect_builtins_config_sources}
|
|
coverswitch/coverswitch_config.cpp
|
|
coverswitch/coverswitch_config.ui
|
|
)
|
|
|
|
# .desktop files
|
|
install( FILES
|
|
coverswitch/coverswitch_config.desktop
|
|
DESTINATION ${SERVICES_INSTALL_DIR}/kwin )
|