Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

Commit 41ae669

Browse files
author
Akynna
committed
Merge remote-tracking branch 'origin/master'
2 parents a95297e + 6a73f21 commit 41ae669

20 files changed

+3
-143
lines changed

Project/icg17/Sans titre.png

1.21 MB
Loading

Project/icg17/Sans titre_1.png

1.22 MB
Loading

Project/icg17/Sans titre_2.png

1.42 MB
Loading

Project/icg17/Sans titre_3.png

1.08 MB
Loading

Project/icg17/Sans titre_4.png

1.36 MB
Loading

Project/icg17/Sans titre_5.png

1.27 MB
Loading

Project/icg17/Sans titre_6.png

1.53 MB
Loading

Project/icg17/Sans titre_7.png

1.38 MB
Loading

Project/icg17/Sans titre_8.png

1.22 MB
Loading

Project/icg17/Sans titre_9.png

1.12 MB
Loading

Project/icg17/project/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ file(GLOB SHADERS
2020
cube/*.glsl
2121
water/*.glsl
2222
noise/*.glsl
23-
displaytexture/*.glsl
2423
grid/*.glsl
2524
)
2625
deploy_shaders_to_build_dir(${SHADERS})

Project/icg17/project/displaytexture/displaytexture.h

-103
This file was deleted.

Project/icg17/project/displaytexture/displaytexture_fshader.glsl

-11
This file was deleted.

Project/icg17/project/displaytexture/displaytexture_vshader.glsl

-15
This file was deleted.

Project/icg17/project/grid/grid_fshader.glsl

-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ void main() {
142142
chooseColorOnHeight(height, normal);
143143

144144
// PHONG SHADING
145-
//raw_color=vec3(0);
146-
147145
vec3 light_dir = light_pos - vpoint_mv.xyz;
148146
vec3 view_dir = -vpoint_mv.xyz;
149147

Project/icg17/project/main.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ void KeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods
412412
// variation of speed
413413
float v1 = 0.72f;
414414
float v2 = 1-v1;
415-
//if(action == GLFW_REPEAT) {
416415
switch(key){
417416

418417
case GLFW_KEY_LEFT:
@@ -452,7 +451,6 @@ void KeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods
452451
speedBezierFPS += 0.05f;
453452
break;
454453
}
455-
//}
456454
}
457455
}
458456
}

Project/icg17/project/sky/sky.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,7 @@ class Sky {
228228
glDeleteTextures(1, &texture_id_sky);
229229
}
230230

231-
void Draw(float time,
232-
const glm::mat4& model,
233-
const glm::mat4& view,
234-
const glm::mat4& projection) {
231+
void Draw(float time, const glm::mat4& model, const glm::mat4& view, const glm::mat4& projection) {
235232
glUseProgram(program_id_);
236233
glBindVertexArray(vertex_array_id_sky);
237234
glDisable(GL_DEPTH_TEST); // sky always in background

Project/icg17/project/water/water.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class Water : public Material, public Light{
140140
glActiveTexture(GL_TEXTURE20);
141141
glBindTexture(GL_TEXTURE_2D, reflection_texture_id_);
142142
GLuint tex_id = glGetUniformLocation(program_id_, "tex_water");
143-
glUniform1i(tex_id, 20 /*GL_TEXTURE0*/);
143+
glUniform1i(tex_id, 20);
144144

145145
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
146146
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
@@ -199,7 +199,7 @@ class Water : public Material, public Light{
199199
glActiveTexture(GL_TEXTURE18);
200200
glBindTexture(GL_TEXTURE_2D, tex_dudv_);
201201
GLuint tex_dudv_id = glGetUniformLocation(program_id_, "tex_dudv");
202-
glUniform1i(tex_dudv_id, 18 /*GL_TEXTURE3*/);
202+
glUniform1i(tex_dudv_id, 18);
203203

204204
// setup matrix stack - model, view, projection
205205
GLint model_id = glGetUniformLocation(program_id_, "model");

Project/icg17/project/water/water_fshader.glsl

-2
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,9 @@ void main() {
4343
vec4 water_blue_color = mix(color1, reflect_color, reflect_intensity);
4444

4545

46-
4746
// little adjustments
4847
water_blue_color -= 0.20;
4948
water_blue_color.b += 15/255.;
50-
//water_blue_color.g += 35/255.;
5149
vec3 final_color = mix(wave_color, water_blue_color, vec4(0.9)).rgb;
5250

5351
// mix hardcoded with skybox color to et smoother fade away

Project/icg17/project/water/water_vshader.glsl

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ out vec2 textureCoords;
1616

1717
out float transparency;
1818

19-
2019
void main() {
2120
uv = (position + vec2(1.0, 1.0)) * 0.5;
2221

0 commit comments

Comments
 (0)