Skip to content

Commit f993b10

Browse files
Fix shadows slides
1 parent 0b44a21 commit f993b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

h3d/shader/pbr/Slides.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Slides extends ScreenShader {
5353
if ( x < 1 )
5454
color = vec3(emissive, custom1, custom2);
5555
else if ( x < 2 ) {
56-
var uv = vec2(x,y) - 3;
56+
var uv = vec2(x-1,y-2);
5757
if( shadowIsCube ) {
5858
var phi = (1 - uv.x)*3.1415*2;
5959
var theta = (-uv.y+0.5)*3.1415;

0 commit comments

Comments
 (0)