Skip to content

Commit 6552f0e

Browse files
authored
Merge branch 'master' into one-true-struct
2 parents 22c6583 + 5264617 commit 6552f0e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

drivers/gles3/shaders/scene.glsl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2327,6 +2327,8 @@ void main() {
23272327
#else
23282328

23292329
diffuse_light *= albedo;
2330+
diffuse_light *= ao;
2331+
specular_light *= ao;
23302332
diffuse_light *= 1.0 - metallic;
23312333
ambient_light *= 1.0 - metallic;
23322334

@@ -2599,6 +2601,8 @@ void main() {
25992601
#endif // ADDITIVE_SPOT
26002602

26012603
diffuse_light *= albedo;
2604+
diffuse_light *= ao;
2605+
specular_light *= ao;
26022606
diffuse_light *= 1.0 - metallic;
26032607
vec3 additive_light_color = diffuse_light + specular_light;
26042608

drivers/gles3/shaders/sky.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ void main() {
195195
cube_normal = mat3(orientation) * cube_normal;
196196
cube_normal = normalize(cube_normal);
197197

198-
vec2 uv = gl_FragCoord.xy; // uv_interp * 0.5 + 0.5;
198+
vec2 uv = uv_interp * 0.5 + 0.5;
199199

200200
vec2 panorama_coords = vec2(atan2_approx(cube_normal.x, -cube_normal.z), acos_approx(cube_normal.y));
201201

0 commit comments

Comments
 (0)