From d2b94a8d7fd65753e99c5037a910ad047458db00 Mon Sep 17 00:00:00 2001 From: caizhitao Date: Wed, 25 Dec 2019 22:25:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84effect=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/effects/builtin-2d-sprite-explain.effect | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/effects/builtin-2d-sprite-explain.effect b/assets/effects/builtin-2d-sprite-explain.effect index 8e2009f..d7ef9b1 100644 --- a/assets/effects/builtin-2d-sprite-explain.effect +++ b/assets/effects/builtin-2d-sprite-explain.effect @@ -46,6 +46,7 @@ CCProgram vs %{ // in 用在函数的参数中,表示这个参数是输入的,在函数中改变这个值,并不会影响对调用的函数产生副作用。(相当于C语言的传值),这个是函数参数默认的修饰符 // 顶点坐标 + // a_position 是笛卡尔坐标右手系,也是OpenGL的坐标系,原点在左下角,X轴正方向往右,Y轴正方向往上,Z轴正方向往外 in vec3 a_position; // 顶点颜色,实际为对应节点的颜色 @@ -61,6 +62,7 @@ CCProgram vs %{ #if USE_TEXTURE // 输入的纹理坐标 + // a_uv0 是标准屏幕坐标系,即原点在左上角,X轴正方向往右,Y轴正方向往下 in vec2 a_uv0; // 输出的纹理坐标