Skip to content

Commit 3dec5a7

Browse files
authored
Fix the other integer division error in shadow tutorial
1 parent ce5759e commit 3dec5a7

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
@@ -414,7 +414,7 @@ While the image clearly repeats, we now have unique values per pixel for the noi
414414

415415
```glsl
416416
vec3 getSoftShadow(vec4 shadowClipPos){
417-
const float range = SHADOW_SOFTNESS / 2; // how far away from the original position we take our samples from
417+
const float range = SHADOW_SOFTNESS / 2.0; // how far away from the original position we take our samples from
418418
const float increment = range / SHADOW_QUALITY; // distance between each sample
419419
420420
float noise = getNoise(texcoord).r;

0 commit comments

Comments
 (0)