Skip to content

Commit

Permalink
Merge pull request #84223 from BastiaanOlij/fix_mobile_radiance_sky
Browse files Browse the repository at this point in the history
Fix cubemap downsampler logic
  • Loading branch information
akien-mga committed Oct 31, 2023
2 parents 6271f91 + e3b8af7 commit 3196135
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ layout(location = 0) out vec2 uv_interp;
void main() {
vec2 base_arr[3] = vec2[](vec2(-1.0, -1.0), vec2(-1.0, 3.0), vec2(3.0, -1.0));
gl_Position = vec4(base_arr[gl_VertexIndex], 0.0, 1.0);
uv_interp = clamp(gl_Position.xy, vec2(0.0, 0.0), vec2(1.0, 1.0)) * 2.0; // saturate(x) * 2.0
uv_interp = clamp(gl_Position.xy, vec2(0.0, 0.0), vec2(1.0, 1.0)) * 2.0 * float(params.face_size); // saturate(x) * 2.0
}

/* clang-format off */
Expand Down

0 comments on commit 3196135

Please sign in to comment.