Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Task03: Fragment Shader (Sphere Tracing / SDF)

preview

Deadline: May 12th (Thu) at 15:00pm


Before Doing Assignment

If you have not done the task00, do it first to set up the C++ graphics development environment.

Follow this document to submit the assignment, In a nutshell, before doing the assignment,

  • make sure you synchronized the main branch of your local repository to that of remote repository.
  • make sure you created branch task03 from main branch.
  • make sure you are currently in the task03 branch (use git branch -a command).

Now you are ready to go!


Problem 1

  1. Build the code using cmake
  2. Run the code
  3. Take a screenshot image (looks like image at the top)
  4. Save the screenshot image overwriting task03/problem1.png

problem1

Problem 2

Write some code (about 5 ~ 7 lines) around line #28 in shader.frag to define singed distance function of an object where a big sphere is caved out with many small spheres. Read the instruction in the shader.frag for more information.

Save the screenshot image overwriting task03/problem2.png

problem2

After Doing the Assignment

After modify the code, push the code and submit a pull request.