Compare commits
2 Commits
Release1.1
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
3b25514233 | ||
|
45d969c16e |
@ -56,8 +56,8 @@ ADD_DEFINITIONS(-DNO_SPACE_NAVIGATOR_SUPPORT)
|
|||||||
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -DSAXUM_DEBUG -g")
|
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -DSAXUM_DEBUG -g")
|
||||||
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -DSAXUM_DEBUG -g")
|
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -DSAXUM_DEBUG -g")
|
||||||
|
|
||||||
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O2 -DNDEBUG")
|
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -DNDEBUG")
|
||||||
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -O2 -DNDEBUG")
|
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -DNDEBUG")
|
||||||
|
|
||||||
set(dir ${CMAKE_CURRENT_SOURCE_DIR}/binaries)
|
set(dir ${CMAKE_CURRENT_SOURCE_DIR}/binaries)
|
||||||
set(EXECUTABLE_OUTPUT_PATH ${dir} CACHE PATH "Build directory" FORCE)
|
set(EXECUTABLE_OUTPUT_PATH ${dir} CACHE PATH "Build directory" FORCE)
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#version 150
|
#version 150
|
||||||
|
|
||||||
out float gl_FragDepth;
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
gl_FragDepth = gl_FragCoord.z;
|
gl_FragDepth = gl_FragCoord.z;
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,6 @@ in vec4 fragPosition;
|
|||||||
|
|
||||||
uniform float farPlane;
|
uniform float farPlane;
|
||||||
|
|
||||||
out float gl_FragDepth;
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
float nearPlane = 0.1;
|
float nearPlane = 0.1;
|
||||||
float A = -(farPlane+nearPlane)/(farPlane-nearPlane);
|
float A = -(farPlane+nearPlane)/(farPlane-nearPlane);
|
||||||
|
Loading…
Reference in New Issue
Block a user