2026-07-22 18:09:06 +02:00
|
|
|
//SPDX-License-Identifier: MIT
|
|
|
|
|
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
|
|
|
|
|
2026-06-18 19:35:54 +00:00
|
|
|
#version 460
|
|
|
|
|
#extension GL_EXT_ray_tracing : enable
|
|
|
|
|
|
|
|
|
|
layout(location = 0) rayPayloadInEXT vec3 hitValue;
|
|
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
|
// Soft sky gradient based on ray direction Y. The actual ray dir
|
|
|
|
|
// isn't accessible without an extra payload field; use a flat warm
|
|
|
|
|
// tone that matches Sponza's interior lighting.
|
|
|
|
|
hitValue = vec3(0.10, 0.08, 0.06);
|
|
|
|
|
}
|