Skip to content

Commit 184ac24

Browse files
Fix TileSprite not correctly applying smoothPixelArt to frames.
This change causes the MakeSmoothPixelArt shader addition to compile _after_ the MakeTexCoordFrameWrap addition, as intended.
1 parent 746cd8d commit 184ac24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/renderer/webgl/shaders/additionMakers/MakeTexCoordFrameClamp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var MakeTexCoordFrameClamp = function (disable)
2222
name: 'TexCoordFrameClamp',
2323
additions: {
2424
fragmentHeader: DefineTexCoordFrameClamp,
25-
fragmentProcess: 'texCoord = clampTexCoordWithinFrame(texCoord);'
25+
texCoord: 'texCoord = clampTexCoordWithinFrame(texCoord);'
2626
},
2727
disable: !!disable
2828
};

src/renderer/webgl/shaders/additionMakers/MakeTexCoordFrameWrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var MakeTexCoordFrameWrap = function (disable)
1919
return {
2020
name: 'TexCoordFrameWrap',
2121
additions: {
22-
fragmentProcess: '// Wrap texture coordinate into the UV space of the texture frame.\ntexCoord = mod(texCoord, 1.0) * outFrame.zw + outFrame.xy;'
22+
texCoord: '// Wrap texture coordinate into the UV space of the texture frame.\ntexCoord = mod(texCoord, 1.0) * outFrame.zw + outFrame.xy;'
2323
},
2424
disable: !!disable
2525
};

0 commit comments

Comments
 (0)