Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

GPU Raytracing

$
0
0
Hi everybody! I am currently trying to write my own GPU Raytracer. I am using DirectX 11 and Compute Shader. Here is what I've tried so far: RayTracer.hlsl RayTracingHeader.hlsli But the result is not what I expected. For example, the sphere is located at (0,0,10) with radius 1, but this is the result when CamPos is 4.5, which I think is wrong. Also, for some reason, when I rotate the camera, the sphere expands. Anyone could give me some pieces of advice, please?

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>