Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
turtle3d
shader-generator
Commits
322c7359
Verified
Commit
322c7359
authored
Mar 21, 2020
by
insert
Browse files
Fix 3.
parent
88a96f50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/fragment/lighting/shadows.glsl
src/fragment/lighting/shadows.glsl
+1
-1
No files found.
src/fragment/lighting/shadows.glsl
View file @
322c7359
...
...
@@ -32,7 +32,7 @@ float point_shadow(int i) {
PointLight
light
=
pointLights
[
i
];
vec3
fragToLight
=
fPos
-
light
.
position
;
float
closestDepth
=
texture
(
light
.
s
hadowMap
,
fragToLight
).
r
;
float
closestDepth
=
texture
(
pointS
hadowMap
[
i
]
,
fragToLight
).
r
;
closestDepth
*=
far_plane
;
float
currentDepth
=
length
(
fragToLight
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment