mirror of https://github.com/axmolengine/axmol.git
fix lineColor.vert shader (#19684)
This commit is contained in:
parent
cacdc4f140
commit
ac0f9286bf
|
@ -53,6 +53,7 @@ bool ProgramCache::init()
|
||||||
addProgram(positionUColor_vert, positionUColor_frag);
|
addProgram(positionUColor_vert, positionUColor_frag);
|
||||||
addProgram(positionTextureColor_vert, etc1Gray_frag);
|
addProgram(positionTextureColor_vert, etc1Gray_frag);
|
||||||
addProgram(positionTextureColor_vert, grayScale_frag);
|
addProgram(positionTextureColor_vert, grayScale_frag);
|
||||||
|
addProgram(lineColor3D_vert, lineColor3D_frag);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ varying vec4 v_fragmentColor;
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
gl_Position = u_MVPMatrix * vec4(a_position, 1.0f);
|
gl_Position = u_MVPMatrix * vec4(a_position, 1.0);
|
||||||
v_fragmentColor = a_color;
|
v_fragmentColor = a_color;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
Loading…
Reference in New Issue