Join Engin Arslan for an in-depth discussion in this video DirectionalLight, part of Learning 3D Graphics on the Web with Three.js.
- [Instructor] Directional lights…emit parallel light rays.…This is great for simulating light sources…that are very, very far away,…like the sun.…This means that the shadows cast by the directional lights…will all be parallel to each other.…Like before, I will create a function…that wraps the three.JS directional light function.…So here, underneath my spotlight creating function,…I will be creating another function.…Called "get directional lights."…And instead of calling the point lights,…I will call the directional light function…of three.JS.…
And I will update the references to spotlights…in the file to directional lights.…So here, instead of calling the "get spotlight" function,…I will call the "get directional light" function,…and I will change all the references to "spotlight"…to "directional light."…To be able to select all the references to "spotlights,"…I'm using the commands, the shortcuts,…of Sublime text editor.…One more thing that I need to do is,…I need to get rid of this line…that mentions penumbra,…
- Building a simple scene
- Creating three.js 3D objects
- Adding light and shadows
- Animating with Tween.js
- Working with materials and textures
- Editing and importing geometries
- Creating a particle system
- Post-processing with effects and shaders
Skill Level Intermediate
1. Building a Simple Scene
2. Three.js Scene Object
5. Materials and Textures
Next steps1m 53s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.