Lights and Shadows Operators - getting started - Video Tutorial @cablesgl
Lights and Shadows Operators - getting started - Video Tutorial  @cablesgl
Uploaded March 2022 | Updated November 2026, 3 hours ago
Adding custom lighting and introducing shadows into your projects can take your project to a whole other level. Let's see some basics and experiment.

0:00 - intro and examples overview
4:21 - adding shadows to starter project (linked below)
4:34 - Directional Light helper widget
5:44 - default point light and overriding it
7:14 - placement of lights in your op structure
9:35 - Directional Light main parameters overview
13:01 - Cast Shadow parameters section and Shadow Op
13:56 - adjusting Light and Shadow parameters for best look
19:21 - adjust shadow strength and color
21:57 - shadow settings per geometry
23:33 - light direction and shadow draw distance artifacts
25:23 - Polygon and Normal offset parameters
26:47 - Face Culling op for complex geometry shadows
30:47 - Light mixing and negative light intensity
32:40 - Mesh Instancing and shadows

at 31:10 it is a "Back Light" not "Key Light"!

Example projects to get you started
shapes and shadows:
cables.gl/p/Zg2Qq-
instances and shadows:
cables.gl/p/CTAzl-
a remix based on the above:
cables.gl/p/1NlCq-
the pool scene:
cables.gl/p/7LO2N_

Documentation and example page for Shadow operator:
cables.gl/op/Ops.Gl.ShaderEffects.Shadow_v2

Documentation and example page for Directional Light operator:
cables.gl/op/Ops.Gl.Phong.DirectionalLight_v5

Documentation and example page for Point Light operator:
cables.gl/op/Ops.Gl.Phong.PointLight_v5

Documentation and example page for Spot Light operator:
cables.gl/op/Ops.Gl.Phong.SpotLight_v5

Documentation and example page for Face Culling operator:
cables.gl/op/Ops.Gl.FaceCulling_v2

Face sculpture featured in the video by Osama Elhadidi:
sketchfab.com/3d-models/12-portrait-d1290dba44894191b01771334bd2cc8c

New to cables.gl? check out our channel and start creating your own webgl projects for free
cables.gl
Lights and Shadows Operators - getting started - Video TutorialArrays in cables - tutorial 03composing arrays and datastructures using comp opsCables meetup talks: AI/Stable diffusion talk and september updateInteractive Raycasting with Intersection Opsconverter opsTwitch LiveStream - building VJ software in cables / EP 01CSV data visualization 03Texture2ColorArray op tutorial20 goto 10 c64 - Copycat with cablesCSV data visualization 02how to use HTML and CSS ops in cables
cables_gl |

Lights and Shadows Operators - getting started - Video Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER