diff options
author | sotech117 <michael_foiani@brown.edu> | 2024-05-10 06:41:07 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2024-05-10 06:42:45 -0400 |
commit | 949907125f6f05937f3357c5ddc85a2e7380cf91 (patch) | |
tree | f65548a276314f540265ace695dd74f8ab050a3a /resources | |
parent | bbcfd7f0ff4415e26bf05e0b8660f94bfca94103 (diff) |
tile fix and lighting fix
Diffstat (limited to 'resources')
-rwxr-xr-x | resources/shaders/shader.frag | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/shaders/shader.frag b/resources/shaders/shader.frag index e9e3210..224b68e 100755 --- a/resources/shaders/shader.frag +++ b/resources/shaders/shader.frag @@ -25,7 +25,7 @@ uniform sampler2D groundSampler; uniform sampler2D skySampler; uniform vec2 widthBounds; uniform vec2 lengthBounds; -uniform vec4 sunColor = vec4(1, 0.5f, 0, 1.f); +uniform vec4 sunColor = vec4(128, 10, 0, 1.f); //uniform float test = 0; // Random methods from https://gist.github.com/patriciogonzalezvivo/670c22f3966e662d2f83 @@ -53,7 +53,7 @@ vec2 uvFromWorldPoint(vec3 point) { void main() { // Do lighting in camera space - vec3 lightDir = -normalize(vec3(1, -1, 1)); + vec3 lightDir = -normalize(vec3(-1, 0, 1)); // lightDir = normalize(vec3(0.f, 3.f, 0.f) - pos); // float d = clamp(dot(normal_cameraSpace, lightDir), 0, 1); float d = clamp(dot(normal_worldSpace, lightDir), 0, 1); |