Skip to content

Commit db4cd8b

Browse files
authored
add quotes to #include
1 parent 5eda68e commit db4cd8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/docs/current/Guides/Your First Shader/4_shadows.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Let's make a new file called `distort.glsl`. We'll put it in a folder called `li
180180

181181
We can then add
182182
```glsl
183-
#include /lib/distort.glsl
183+
#include "/lib/distort.glsl"
184184
```
185185
to our `shadow.vsh`. This should be included before the `main` function, as you cannot define functions within a function. I put mine just before my `out` declarations. We should also move our declaration of `shadowMapResolution` to `distort.glsl`. This way, we can access this variable anywhere we are sampling the shadow map.
186186

0 commit comments

Comments
 (0)