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?
↧