Plannnninnnngggg

This commit is contained in:
Ben
2019-10-04 17:44:29 +01:00
parent b315cc8951
commit 9e184d15ce
4 changed files with 87 additions and 104 deletions

View File

@@ -40,9 +40,9 @@ if (UNIX)
endif (UNIX)
include_directories(${executable}
#${PNG_INCLUDE_DIR}
#${JPEG_INCLUDE_DIR}
${IncludeDIR}
#${PNG_INCLUDE_DIR}
#${JPEG_INCLUDE_DIR}
${IncludeDIR}
)
file(GLOB SourceFiles
@@ -53,8 +53,8 @@ file(GLOB SourceFiles
add_executable(${executable} ${SourceFiles})
set_target_properties(${executable} PROPERTIES
CXX_STANDARD 17
CXX_EXTENSIONS OFF
CXX_STANDARD 17
CXX_EXTENSIONS OFF
)
if (UNIX)
@@ -63,7 +63,7 @@ if (UNIX)
#SDL2_image
#PNG::PNG
#JPEG::JPEG
OpenGL::OpenGL
OpenGL::OpenGL
OpenGL::GL
Threads::Threads
)
@@ -80,5 +80,5 @@ if (WIN32)
endif (WIN32)
target_link_libraries(${executable}
${CMAKE_DL_LIBS}
${CMAKE_DL_LIBS}
)

View File

@@ -1,7 +0,0 @@
#version 330
out float fragdepth;
void main(){
gl_FragDepth = gl_FragCoord.z;
}

View File

@@ -1,10 +0,0 @@
#version 330
in vec3 vertPos;
uniform mat4 lightSpaceMatrix;
uniform mat4 model;
void main() {
gl_Position = lightSpaceMatrix * model * vec4(vertPos, 1.0);
}