Commit cf3857af authored by Florian Oetke's avatar Florian Oetke
Browse files

Batman (this commit has no parents)

parents
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Fortran module files
*.mod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app
*~
CMakeLists.txt.user
.idea
assets/*.log
assets/assets_ext
assets/ImageTool.jar
compile_commands.json
cmake_minimum_required(VERSION 2.8)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1z")
if(WIN32)
SET(PHYSFS_INTERNAL_ZLIB TRUE)
SET(PHYSFS_ARCHIVE_7Z FALSE)
endif()
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug")
endif()
set(ROOT_DIR ${CMAKE_SOURCE_DIR})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${ROOT_DIR}/modules")
include_directories(BEFORE "${ROOT_DIR}/dependencies")
include_directories(BEFORE "${ROOT_DIR}/dependencies/gsl/include")
include_directories(BEFORE "${ROOT_DIR}/dependencies/sf2/include")
include_directories(BEFORE "${ROOT_DIR}/dependencies/range-v3/include")
include_directories(BEFORE SYSTEM "${ROOT_DIR}/dependencies/nuklear")
add_definitions(-DGLM_FORCE_RADIANS)
add_definitions(-DENABLE_SF2_ASSETS)
add_definitions(-DSTACKTRACE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-pie")
add_subdirectory(dependencies/physfs)
add_subdirectory(dependencies/soil)
add_subdirectory(dependencies/sf2)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=1024 -Wextra -Wall -pedantic -Werror -Wno-unused-parameter -Wno-unused-private-field")
add_subdirectory(src)
file(GLOB_RECURSE ALL_FILES
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/*.*)
add_custom_target(all_project_files SOURCES ${ALL_FILES})
The MIT License (MIT)
Copyright (c) 2016 Florian Oetke
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Bachelor Project (screen space global illumination with Vulkan)
==========
A Vulkan based deferred renderer as a basis for my bachelor thesis about the approximation of global illumination effects in screen space.
assets
assets_ext
blueprint: = blueprints/
blueprint:example = blueprints/example.json
cfg:input_mapping = settings/input_mapping.json
cfg:graphics = graphics-cfg.json
cfg:sounds = sounds-cfg.json
cfg:language = language-cfg.json
cfg:languages_info = settings/languages.json
cfg:gui = settings/gui.json
loc: = loc/
font: = fonts/
font:test = fonts/x.template_regular_48.sfl
font:score_font = fonts/satisfy_regular_20.sfl
font:menu_font = fonts/x.template_regular_48.sfl
font:test_font = fonts/droid_sans.ttf
shader: = shader/
vert_shader:simple = shader/simple.vert
frag_shader:simple = shader/simple.frag
vert_shader:ui = shader/ui.vert
frag_shader:ui = shader/ui.frag
tex: = textures/
tex:black = textures/default_black.png
tex:white = textures/default_white.png
tex:normal = textures/default_normal.png
tex:x_font = textures/x.template_regular_48.tga
tex:satisfy_font = textures/satisfy_regular_20.tga
{
"menu": {
"game": "Game",
"editor": "Editor",
"options": "Options",
"quit": "Quit",
"rank": "Rank",
"player": "Player",
"time": "Time",
"enter player name": "Enter your name:",
"retry": "Retry",
"continue": "Continue",
"next level": "Next level"
}
}
{
"fonts": [
{"aid":"font:test_font", "size":20, "default_font":true}
]
}
{
"initial": "editor",
"contexts": {
"menu": {
"keys": {
"Escape": {"type":"once", "action":"quit"},
"A": {"type":"continuous", "action":"left"},
"Left": {"type":"continuous", "action":"left"},
"D": {"type":"continuous", "action":"right"},
"Right": {"type":"continuous", "action":"right"},
"Up": {"type":"continuous", "action":"up"},
"W": {"type":"continuous", "action":"up"},
"Down": {"type":"continuous", "action":"down"},
"S": {"type":"continuous", "action":"down"},
"Space": {"type":"once", "action":"select"},
"Return": {"type":"once", "action":"continue"},
"Backspace": {"type":"once", "action": "backspace"},
"T_1": {"type":"once", "action":"select_a"},
"T_2": {"type":"once", "action":"select_b"},
"T_3": {"type":"once", "action":"select_c"},
"T_4": {"type":"once", "action":"select_d"},
"T_5": {"type":"once", "action":"select_e"},
"T_6": {"type":"once", "action":"select_f"},
"T_7": {"type":"once", "action":"select_g"},
"T_8": {"type":"once", "action":"select_h"},
"T_9": {"type":"once", "action":"select_i"}
},
"pad_sticks": {
"left": {"type": "range", "action": "move"},
"right": {"type": "range", "action": "move"}
},
"pad_buttons": {
"x": {"type":"once", "action":"select"},
"a": {"type":"once", "action":"select"},
"left_shoulder": {"type":"once", "action":"select"},
"left_trigger": {"type":"once", "action":"select"},
"right_shoulder": {"type":"once", "action":"select"},
"right_trigger": {"type":"once", "action":"select"},
"start": {"type":"once", "action":"quit"}
},
"mouse_buttons": {
{"button":1, "clicks":0}: {"type":"once", "action":"select"}
},
"mouse_movement": {"type": "range", "action": "move_abs"}
},
"game": {
"keys": {
"Escape": {"type":"once", "action":"pause"},
"Q": {"type":"once", "action":"prev_player"},
"E": {"type":"once", "action":"next_player"},
"A": {"type":"continuous", "action":"move_left"},
"Left": {"type":"continuous", "action":"move_left"},
"D": {"type":"continuous", "action":"move_right"},
"Right": {"type":"continuous", "action":"move_right"},
"Space": {"type":"continuous", "action":"transform"},
"Up": {"type":"continuous", "action":"jump"},
"W": {"type":"continuous", "action":"jump"}
},
"pad_sticks": {
"left": {"type": "range", "action": "move"},
"right": {"type": "range", "action": "move"}
},
"pad_buttons": {
"x": {"type":"continuous", "action":"jump"},
"a": {"type":"continuous", "action":"transform"},
"left_trigger": {"type":"continuous", "action":"transform"},
"right_trigger": {"type":"continuous", "action":"transform"},
"start": {"type":"once", "action":"pause"},
"left_shoulder": {"type":"once", "action":"prev_player"},
"right_shoulder": {"type":"once", "action":"next_player"}
},
"mouse_buttons": {
{"button":1, "clicks":0}: {"type":"continuous", "action":"transform"}
},
"mouse_movement": {"type": "range", "action": "mouse_look"}
},
"editor": {
"keys": {
"Escape": {"type":"once", "action":"back"},
"Z": {"type":"once", "action":"undo"},
"Y": {"type":"once", "action":"redo"},
"G": {"type":"once", "action":"toggle_grid"},
"C": {"type":"once", "action":"copy"},
"X": {"type":"once", "action":"cut"},
"V": {"type":"once", "action":"paste"},
"L": {"type":"once", "action":"light"},
"LControl": {"type":"continuous", "action":"copy_drag"},
"Delete": {"type":"once", "action":"delete"},
"Left": {"type":"continuous", "action":"scroll_l"},
"Right": {"type":"continuous", "action":"scroll_r"},
"Down": {"type":"continuous", "action":"scroll_d"},
"Up": {"type":"continuous", "action":"scroll_u"},
"F5": {"type":"once", "action":"save"},
"F9": {"type":"once", "action":"load"},
"F6": {"type":"once", "action":"start"},
"H": {"type":"once", "action":"flip_h"},
"J": {"type":"once", "action":"flip_v"},
"T_1": {"type":"once", "action":"new_a"},
"T_2": {"type":"once", "action":"new_b"},
"T_3": {"type":"once", "action":"new_c"},
"T_4": {"type":"once", "action":"new_d"},
"T_5": {"type":"once", "action":"new_e"},
"T_6": {"type":"once", "action":"new_f"},
"T_7": {"type":"once", "action":"new_g"},
"T_8": {"type":"once", "action":"new_h"},
"T_9": {"type":"once", "action":"new_i"},
"PageUp": {"type":"once", "action":"next"},
"PageDown": {"type":"once", "action":"prev"}
},
"mouse_wheel_up": {"type":"once", "action": "zoom_in"},
"mouse_wheel_down": {"type":"once", "action": "zoom_out"},
"mouse_buttons": {
{"button":1, "clicks":0}: {"type":"continuous", "action":"mouse_down"},
{"button":1, "clicks":-1}: {"type":"once", "action":"mouse_click"}
}
}
}
}
{
"default_language": "en",
"supported_languages": ["en"]
}
#version auto
precision mediump float;
in vec2 uv_frag;
in vec4 color_frag;
out vec4 out_color;
uniform sampler2D tex;
void main() {
vec4 c = texture(tex, uv_frag) * color_frag;
if(c.a>0.01)
out_color = c;
else
discard;
}
#version auto
precision mediump float;
in vec2 position;
in vec2 uv;
in vec4 color;
out vec2 uv_frag;
out vec4 color_frag;
uniform mat4 vp;
void main() {
gl_Position = vp * vec4(position, 0, 1);
uv_frag = uv;
color_frag = color;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment