diff --git a/README.md b/README.md index dd258af..4b788ad 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,31 @@ Project 0 Getting Started **University of Pennsylvania, CIS 565: GPU Programming and Architecture, Project 0** -* (TODO) YOUR NAME HERE - * (TODO) [LinkedIn](), [personal website](), [twitter](), etc. -* Tested on: (TODO) Windows 22, i7-2222 @ 2.22GHz 22GB, GTX 222 222MB (Moore 2222 Lab) +* Xinyu Niu + * Personal Site: https://xinyuniu6.wixsite.com/my-site-1 +* Tested on: Windows 10, i7-9750H @ 2.60GHz 22GB, GTX 1650 4096MB (personal computer) + +### Screenshots + +* 3.1.1 + +![](images/1.PNG) + +* 3.1.2 + +![](images/2.PNG) + +* 3.1.3 + +![](images/3.PNG) + +* 3.2 + +![](images/4.PNG) + +* 3.3 + +![](images/5.PNG) -### (TODO: Your README) -Include screenshots, analysis, etc. (Remember, this is public, so don't put -anything here that you don't want to share with the world.) diff --git a/cuda-getting-started/src/main.cpp b/cuda-getting-started/src/main.cpp index 886fd4c..d312c14 100644 --- a/cuda-getting-started/src/main.cpp +++ b/cuda-getting-started/src/main.cpp @@ -11,7 +11,7 @@ */ int main(int argc, char* argv[]) { // TODO: Change this line to use your name! - m_yourName = "TODO: YOUR NAME HERE"; + m_yourName = "Xinyu Niu"; if (init(argc, argv)) { mainLoop(); diff --git a/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl b/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl index d817ca4..8f34967 100644 --- a/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl +++ b/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl @@ -69,7 +69,7 @@ void MyRaygenShader() [shader("closesthit")] void MyClosestHitShader(inout RayPayload payload, in MyAttributes attr) { - float3 barycentrics = float3(1 - attr.barycentrics.x - attr.barycentrics.y, attr.barycentrics.x, attr.barycentrics.y); + float3 barycentrics = float3(0, 0.8, 0);//float3(1 - attr.barycentrics.x - attr.barycentrics.y, attr.barycentrics.x, attr.barycentrics.y); payload.color = float4(barycentrics, 1); } diff --git a/images/1.PNG b/images/1.PNG new file mode 100644 index 0000000..1a0bb71 Binary files /dev/null and b/images/1.PNG differ diff --git a/images/2.PNG b/images/2.PNG new file mode 100644 index 0000000..07c1f2d Binary files /dev/null and b/images/2.PNG differ diff --git a/images/3.PNG b/images/3.PNG new file mode 100644 index 0000000..97ef49e Binary files /dev/null and b/images/3.PNG differ diff --git a/images/4.PNG b/images/4.PNG new file mode 100644 index 0000000..dbd6f72 Binary files /dev/null and b/images/4.PNG differ diff --git a/images/5.PNG b/images/5.PNG new file mode 100644 index 0000000..c64f193 Binary files /dev/null and b/images/5.PNG differ