//SPDX-License-Identifier: MIT //SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts® #version 460 #extension GL_EXT_ray_tracing : enable // RTVolume miss — vertical sky gradient, also what shows through the // any-hit cut-out cells. Mirrors miss.wgsl on the WebGPU path. layout(location = 0) rayPayloadInEXT vec3 hitValue; void main() { float t = clamp(gl_WorldRayDirectionEXT.y * 0.5 + 0.5, 0.0, 1.0); hitValue = mix(vec3(0.05, 0.07, 0.12), vec3(0.45, 0.60, 0.85), t); }