File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ const float epsilon = 1e-3;
2020uniform mat4 u_projectionMatrix;
2121uniform mat4 u_modelMatrix;
2222attribute vec2 a_texCoord;
23- #ifdef ENABLE_horizontalShear
23+ #ifdef ENABLE_horizontal_shear
2424uniform float u_horizontalShear;
2525#endif
26- #ifdef ENABLE_verticalShear
26+ #ifdef ENABLE_vertical_shear
2727uniform 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
You can’t perform that action at this time.
0 commit comments