mirror of https://github.com/axmolengine/axmol.git
More: Uses c++11 multi-line string literal (#16803)
This commit is contained in:
parent
9eb177c6cc
commit
f32effeb96
|
@ -1,5 +1,5 @@
|
|||
|
||||
const char* cc3D_Particle_vert = STRINGIFY(
|
||||
const char* cc3D_Particle_vert = R"(
|
||||
|
||||
attribute vec4 a_position;
|
||||
attribute vec4 a_color;
|
||||
|
@ -15,4 +15,4 @@ void main()
|
|||
gl_Position = CC_PMatrix * a_position;
|
||||
}
|
||||
|
||||
);
|
||||
)";
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
const char* cc3D_PositionTex_vert = STRINGIFY(
|
||||
const char* cc3D_PositionTex_vert = R"(
|
||||
|
||||
attribute vec4 a_position;
|
||||
attribute vec2 a_texCoord;
|
||||
|
@ -12,9 +12,9 @@ void main(void)
|
|||
TextureCoordOut = a_texCoord;
|
||||
TextureCoordOut.y = 1.0 - TextureCoordOut.y;
|
||||
}
|
||||
);
|
||||
)";
|
||||
|
||||
const char* cc3D_SkinPositionTex_vert = STRINGIFY(
|
||||
const char* cc3D_SkinPositionTex_vert = R"(
|
||||
attribute vec3 a_position;
|
||||
|
||||
attribute vec4 a_blendWeight;
|
||||
|
@ -85,4 +85,4 @@ void main()
|
|||
TextureCoordOut.y = 1.0 - TextureCoordOut.y;
|
||||
}
|
||||
|
||||
);
|
||||
)";
|
|
@ -1,4 +1,4 @@
|
|||
const char* cc3D_Skybox_vert = STRINGIFY(
|
||||
const char* cc3D_Skybox_vert = R"(
|
||||
|
||||
uniform mat4 u_cameraRot;
|
||||
attribute vec3 a_position;
|
||||
|
@ -10,4 +10,4 @@ void main(void)
|
|||
v_reflect = reflect.xyz;
|
||||
gl_Position = vec4(a_position.xy, 1.0 , 1.0);
|
||||
}
|
||||
);
|
||||
)";
|
Loading…
Reference in New Issue