Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dluisnothere authored Oct 9, 2022
1 parent 324b9e2 commit 5d0b551
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ _OBJ credit goes to [volkanongun](https://sketchfab.com/3d-models/low-poly-cat-1

### UV Texture, Procedural Texture and Bump Mapping

In order to read UV values and map them to a texture file (png, bmp, etc), I used CudaTextureObject (Documentation). First, I used stbi_loader to parse pixel information from a given png file. Then, I sent pixel information to an array of cudaArray objects, where each cudaArray object contains all pixels associated with a specific texture. I also have an array of cudaTextureObjects, where each cudaTextureObject acts as a "wrapper" for the pixel information so that sampling functions can be called on the pixel information. (However, as a result of using this, I have had to flip my textures vertically to work properly).

![](img/completeMario2.png)

![](img/myLink.png)
Expand Down

0 comments on commit 5d0b551

Please sign in to comment.