diff --git a/README.md b/README.md index dd258af..d9bd092 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,23 @@ 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) +* Hanting Xu + * [GitHub](https://github.com/HantingXu), [LinkedIn](www.linkedin.com/in/hanting-xu-25615b28b). +* Tested on: (Personal Computer) Windows 11, i7-12700H @ 2.70GHz 32GB, GeForce RTX 3070 Ti Laptop GPU -### (TODO: Your README) +### Screenshots +* Part. 3.1.1 +![3.1.1](images/3.1.1.png) +* Part. 3.1.2 +![3.1.2](images/3.1.2.png) +* Part. 3.1.3 +![3.1.3](images/3.1.3.png) +Using the number 1440 +* Part. 3.2 +![3.2](images/3.2.png) +WebGL and WebGPU can work +* Part. 3.3 +![3.3](images/3.3.png) +Using color (0.6f, 0.2f, 0.9f) -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..fffb80a 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 = "Hanting Xu"; if (init(argc, argv)) { mainLoop(); diff --git a/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl b/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl index d817ca4..e2a635b 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.6f, 0.2f, 0.9f); payload.color = float4(barycentrics, 1); } diff --git a/images/3.1.1.png b/images/3.1.1.png new file mode 100644 index 0000000..86c73e8 Binary files /dev/null and b/images/3.1.1.png differ diff --git a/images/3.1.2.png b/images/3.1.2.png new file mode 100644 index 0000000..2692da4 Binary files /dev/null and b/images/3.1.2.png differ diff --git a/images/3.1.3.png b/images/3.1.3.png new file mode 100644 index 0000000..630e8cc Binary files /dev/null and b/images/3.1.3.png differ diff --git a/images/3.2.png b/images/3.2.png new file mode 100644 index 0000000..20b9822 Binary files /dev/null and b/images/3.2.png differ diff --git a/images/3.3.png b/images/3.3.png new file mode 100644 index 0000000..7f087f1 Binary files /dev/null and b/images/3.3.png differ