- Banished color buffer updating at render time (except for gradient quads that uses vertex color) - fully transparent quads are not rendered anymore (that avoid rendering transparent layers allowing complex layout for free). git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9232 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
14 lines
291 B
GLSL
14 lines
291 B
GLSL
uniform mat4 g_WorldViewProjectionMatrix;
|
|
|
|
attribute vec4 inPosition;
|
|
attribute vec4 inColor;
|
|
attribute vec4 inIndex;
|
|
|
|
varying vec4 color;
|
|
|
|
void main() {
|
|
vec2 pos = (g_WorldViewProjectionMatrix * inPosition).xy;
|
|
gl_Position = vec4(pos, 0.0, 1.0);
|
|
|
|
color = inIndex;
|
|
} |