Skip to content

Commit 8dd75fe

Browse files
committed
same here, name needs to change
1 parent a286459 commit 8dd75fe

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/ShaderManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,13 @@ ShaderManager.EFFECT_INFO = {
182182
converter: x => x - 1,
183183
shapeChanges: false
184184
},
185-
horizontalShear: {
185+
horizontal_shear: {
186186
uniformName: 'u_horizontalShear',
187187
mask: 1 << 13,
188188
converter: x => x,
189189
shapeChanges: true
190190
},
191-
verticalShear: {
191+
vertical_shear: {
192192
uniformName: 'u_verticalShear',
193193
mask: 1 << 14,
194194
converter: x => x,

src/shaders/sprite.vert.glsl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ const float epsilon = 1e-3;
2020
uniform mat4 u_projectionMatrix;
2121
uniform mat4 u_modelMatrix;
2222
attribute vec2 a_texCoord;
23-
#ifdef ENABLE_horizontalShear
23+
#ifdef ENABLE_horizontal_shear
2424
uniform float u_horizontalShear;
2525
#endif
26-
#ifdef ENABLE_verticalShear
26+
#ifdef ENABLE_vertical_shear
2727
uniform float u_verticalShear;
2828
#endif
2929
#endif
@@ -84,11 +84,11 @@ void main() {
8484
#else
8585
float x = a_position.x;
8686
float y = a_position.y;
87-
#ifdef ENABLE_horizontalShear
87+
#ifdef ENABLE_horizontal_shear
8888
if (y < 0.0)
8989
x += u_horizontalShear;
9090
#endif
91-
#ifdef ENABLE_verticalShear
91+
#ifdef ENABLE_vertical_shear
9292
if (x < 0.0)
9393
y += u_verticalShear;
9494
#endif

0 commit comments

Comments
 (0)