Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 02deb39

Browse files
committed
fix texcoord y flipped
1 parent 946283b commit 02deb39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cocos/3d/Textured.es2.vert.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ void main(void)
1313
{
1414
gl_Position = CC_MVPMatrix * a_position;
1515
TextureCoordOut = a_texCoord;
16+
TextureCoordOut.y = 1.0 - TextureCoordOut.y;
1617
}
1718
);
1819

0 commit comments

Comments
 (0)