Skip to content

Commit

Permalink
Adjust brightness to compensate for added lights
Browse files Browse the repository at this point in the history
  • Loading branch information
n8bot committed Dec 4, 2021
1 parent 44cecab commit 4eca3af
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions resources/shaders/gouraud.vs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Two key lights
const vec3 LIGHT_KEY_TOP_DIR = vec3(-1.0, 0.75, 1.0);
const vec3 LIGHT_KEY_BOT_DIR = vec3(-1.0, -0.75, 1.0);
#define LIGHT_KEY_DIFFUSE 0.2
#define LIGHT_KEY_SPECULAR 0.01
#define LIGHT_KEY_DIFFUSE 0.16
#define LIGHT_KEY_SPECULAR 0.008

// One back light
const vec3 LIGHT_BACK_DIR = vec3(0.75, 0.5, -1.0);
Expand Down
4 changes: 2 additions & 2 deletions resources/shaders/gouraud_light.vs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Two key lights
const vec3 LIGHT_KEY_TOP_DIR = vec3(-1.0, 0.75, 1.0);
const vec3 LIGHT_KEY_BOT_DIR = vec3(-1.0, -0.75, 1.0);
#define LIGHT_KEY_DIFFUSE 0.2
#define LIGHT_KEY_SPECULAR 0.01
#define LIGHT_KEY_DIFFUSE 0.16
#define LIGHT_KEY_SPECULAR 0.008

// One back light
const vec3 LIGHT_BACK_DIR = vec3(0.75, 0.5, -1.0);
Expand Down
4 changes: 2 additions & 2 deletions resources/shaders/gouraud_light_instanced.vs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Two key lights
const vec3 LIGHT_KEY_TOP_DIR = vec3(-1.0, 0.75, 1.0);
const vec3 LIGHT_KEY_BOT_DIR = vec3(-1.0, -0.75, 1.0);
#define LIGHT_KEY_DIFFUSE 0.2
#define LIGHT_KEY_SPECULAR 0.01
#define LIGHT_KEY_DIFFUSE 0.16
#define LIGHT_KEY_SPECULAR 0.008

// One back light
const vec3 LIGHT_BACK_DIR = vec3(0.75, 0.5, -1.0);
Expand Down
4 changes: 2 additions & 2 deletions resources/shaders/mm_gouraud.fs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Two key lights
const vec3 LIGHT_KEY_TOP_DIR = vec3(-1.0, 0.75, 1.0);
const vec3 LIGHT_KEY_BOT_DIR = vec3(-1.0, -0.75, 1.0);
#define LIGHT_KEY_DIFFUSE 0.2
#define LIGHT_KEY_SPECULAR 0.01
#define LIGHT_KEY_DIFFUSE 0.16
#define LIGHT_KEY_SPECULAR 0.008

// One back light
const vec3 LIGHT_BACK_DIR = vec3(0.75, 0.5, -1.0);
Expand Down
4 changes: 2 additions & 2 deletions resources/shaders/toolpaths_lines.fs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Two key lights
const vec3 LIGHT_KEY_TOP_DIR = vec3(-1.0, 0.75, 1.0);
const vec3 LIGHT_KEY_BOT_DIR = vec3(-1.0, -0.75, 1.0);
#define LIGHT_KEY_DIFFUSE 0.2
#define LIGHT_KEY_SPECULAR 0.01
#define LIGHT_KEY_DIFFUSE 0.16
#define LIGHT_KEY_SPECULAR 0.008

// One back light
const vec3 LIGHT_BACK_DIR = vec3(0.75, 0.5, -1.0);
Expand Down
4 changes: 2 additions & 2 deletions resources/shaders/variable_layer_height.vs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Two key lights
const vec3 LIGHT_KEY_TOP_DIR = vec3(-1.0, 0.75, 1.0);
const vec3 LIGHT_KEY_BOT_DIR = vec3(-1.0, -0.75, 1.0);
#define LIGHT_KEY_DIFFUSE 0.2
#define LIGHT_KEY_SPECULAR 0.01
#define LIGHT_KEY_DIFFUSE 0.16
#define LIGHT_KEY_SPECULAR 0.008

// One back light
const vec3 LIGHT_BACK_DIR = vec3(0.75, 0.5, -1.0);
Expand Down

0 comments on commit 4eca3af

Please sign in to comment.