Skip to content

Commit

Permalink
Pimp the test code
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Aug 25, 2024
1 parent 512487d commit 501eaf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/in/test.kong
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ struct Payload {

const scene: bvh;

#[write] const uav: tex2d;

const camera: float3 = float3(0, 1.5, -7);
const light: float3 = float3(0, 200, 0);
const skyTop: float3 = float3(0.24, 0.44, 0.72);
Expand All @@ -77,7 +79,7 @@ fun sendrays(): void {

trace_ray(scene, primary, payload);

//uav[idx] = float4(payload.color, 1);
uav[idx] = float4(payload.color.r, payload.color.g, payload.color.b, 1);
}

fun raymissed(payload: Payload): void {
Expand Down

0 comments on commit 501eaf9

Please sign in to comment.