Skip to content
Snippets Groups Projects
Commit a41b72fc authored by BATON Theau's avatar BATON Theau
Browse files

No more RESSOURCE_PATH definition

parent 617ca3ff
No related branches found
No related tags found
No related merge requests found
Showing
with 103 additions and 12 deletions
......@@ -19,7 +19,8 @@ set(CMAKE_CXX_STANDARD ${CXX_STANDARD})
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
add_compile_definitions(RESSOURCE_PATH=${CMAKE_SOURCE_DIR})
#set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR})
#=====================================
# Options
......@@ -59,6 +60,8 @@ add_subdirectory(${SOURCE_DIRECTORY})
target_compile_options(${CURRENT_TARGET} PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-DUSE_STREAMS -gencode arch=compute_61,code=sm_61>)
set_property(TARGET ${CURRENT_TARGET} PROPERTY CUDA_ARCHITECTURES OFF)
set_property(TARGET ${CURRENT_TARGET} PROPERTY RUNTIME_OUTPUT_DIRECTORY $<1:${CMAKE_SOURCE_DIR}>)
target_link_directories(${CURRENT_TARGET} PRIVATE ${LIB_DIRECTORY})
......
File added
File added
......@@ -23,7 +23,7 @@ Pos=10,4
Size=674,754
[Window][Particle Generator Settings]
Pos=38,2
Pos=20,44
Size=523,732
[Window][Dear ImGui Demo]
......
ParticleGenerator/res/models/magicalIndex/book.jpg

34.3 KiB

# Blender 4.1.1 MTL File: 'book.blend'
# www.blender.org
newmtl Material.001
Ns 0.000000
Ka 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2
map_Kd book.png
# Blender 4.1.1
# www.blender.org
#mtllib book.mtl
o Cube
v 1.000000 0.112074 -0.616080
v 0.996224 -0.133569 -0.617124
v 1.000000 0.112074 0.616042
v 1.000000 -0.131600 0.616042
v -1.000000 0.112074 -0.616080
v -1.000000 -0.131600 -0.616080
v -1.000000 0.112074 0.616042
v -1.000000 -0.131600 0.616042
vn -0.0000 1.0000 -0.0000
vn -0.0000 -0.0000 1.0000
vn -1.0000 -0.0000 -0.0000
vn -0.0010 -1.0000 -0.0000
vn 0.9999 -0.0154 -0.0030
vn -0.0005 -0.0000 -1.0000
vn -0.0000 -1.0000 0.0016
vn 1.0000 -0.0000 -0.0000
vn -0.0000 0.0042 -1.0000
vt 0.831135 1.000000
vt -0.000000 0.529971
vt 0.831135 0.530923
vt 1.000000 0.530926
vt 0.833984 1.000000
vt 0.833984 0.530926
vt 0.831135 0.060894
vt -0.000000 -0.000000
vt 0.831135 0.000000
vt -0.002323 0.061432
vt 0.833457 0.529434
vt 0.002328 0.530506
vt 0.831135 0.060945
vt 0.000000 0.060894
vt 1.000000 0.060896
vt 0.831055 0.530029
vt 0.831055 0.060896
vt -0.000000 1.000000
vt 1.000000 1.000000
vt 0.828807 0.060360
vt 1.000000 0.530029
s 0
usemtl Material.001
f 5/1/1 3/2/1 1/3/1
f 3/4/2 8/5/2 4/6/2
f 7/7/3 6/8/3 8/9/3
f 2/10/4 8/11/4 6/12/4
f 1/8/5 4/13/5 2/14/5
f 5/15/6 2/16/6 6/17/6
f 5/1/1 7/18/1 3/2/1
f 3/4/2 7/19/2 8/5/2
f 7/7/3 5/14/3 6/8/3
f 2/10/7 4/20/7 8/11/7
f 1/8/8 3/9/8 4/13/8
f 5/15/9 1/21/9 2/16/9
ParticleGenerator/res/models/magicalIndex/book.png

100 KiB

ParticleGenerator/res/models/magicalIndex/book_old.png

418 KiB

#version 330 core
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec3 aNormal;
layout (location = 2) in vec2 aTexture;
out vec3 zFramPosition;
out vec3 zNormal;
out vec2 zTexture;
uniform mat4 uView;
uniform mat4 uProj;
layout(std140) uniform uModels_t {
mat4 models[1024];
};
void main() {
zFramPosition = vec3(models[gl_InstanceID] * vec4(aPos, 1.0));
zNormal = mat3(transpose(inverse(models[gl_InstanceID]))) * aNormal;
zTexture = aTexture;
gl_Position = uProj* uView * vec4(zFramPosition, 1.0);
}
\ No newline at end of file
......@@ -7,16 +7,13 @@ out vec3 zFramPosition;
out vec3 zNormal;
out vec2 zTexture;
layout(std140) uniform uModels_t {
mat4 models[1024];
};
uniform mat4 uView;
uniform mat4 uProj;
uniform mat4 uModel;
void main() {
zFramPosition = vec3(models[gl_InstanceID] * vec4(aPos, 1.0));
zNormal = mat3(transpose(inverse(models[gl_InstanceID]))) * aNormal;
zFramPosition = vec3(uModel * vec4(aPos, 1.0));
zNormal = mat3(transpose(inverse(uModel))) * aNormal;
zTexture = aTexture;
gl_Position = uProj* uView * vec4(zFramPosition, 1.0);
......
ParticleGenerator/res/textures/skybox/school/back.png

52.4 KiB

ParticleGenerator/res/textures/skybox/school/bottom.png

67 KiB

ParticleGenerator/res/textures/skybox/school/front.png

61.9 KiB

ParticleGenerator/res/textures/skybox/school/left.png

59.1 KiB

ParticleGenerator/res/textures/skybox/school/right.png

53.6 KiB

ParticleGenerator/res/textures/skybox/school/top.png

61.6 KiB

ParticleGenerator/res/textures/skybox/sky/back.png

529 KiB

ParticleGenerator/res/textures/skybox/sky/bottom.png

497 KiB

ParticleGenerator/res/textures/skybox/sky/front.png

541 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment