mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-17 23:09:40 +01:00
a9d5e4dd22
- change how shadows for environment lights work: should cast light only when hitting SURF_SKY - add SBT_RECORD_SIZE to specialization; need this for sky/shadow closest hit shader fix #140
19 lines
512 B
GLSL
19 lines
512 B
GLSL
#version 460 core
|
|
#extension GL_GOOGLE_include_directive : require
|
|
|
|
#include "ray_common.glsl"
|
|
#include "ray_kusochki.glsl"
|
|
|
|
layout(location = PAYLOAD_LOCATION_OPAQUE) rayPayloadInEXT RayPayloadOpaque payload;
|
|
|
|
void main() {
|
|
payload.hit_pos_t = vec4(-1.);
|
|
payload.geometry_normal = payload.normal = vec3(0., 1., 0.);
|
|
payload.transmissiveness = 0.;
|
|
payload.roughness = 0.;
|
|
payload.base_color = vec3(1., 0., 1.);
|
|
payload.kusok_index = -1;
|
|
payload.material_index = 0;
|
|
payload.emissive = vec3(1., 0., 1.);
|
|
}
|