Skip to content

Commit

Permalink
Add shaders doc
Browse files Browse the repository at this point in the history
  • Loading branch information
n-zu authored Jan 24, 2024
1 parent a504b15 commit a739d9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tp/tp2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ Dependencies: `glMatrix`
- Physical setting: Diffuse, Gloss and Specular. Parameters of the Phong Model.
- Light color and strength: Parameters for objects that emmit light
- Children: A list of other 3D objects, that are positioned relative to this one. This allows us to create a root-scene object, that all other objects are child of; aswell as complex objects or systems, which are composed of multiple parts.

## Shaders

- `vertex.glsl`: Sets buffer vertices in the world, appliying camera transformations. Sets position, normal, tangent, binormal and UV.
- `fragment.glsl`: Implements Blinn-Phong model. Defines lights, colors and textures.

0 comments on commit a739d9c

Please sign in to comment.