Search found 3 matches

by 大小姐
Wed May 27, 2015 3:37 am
Forum: General
Topic: Shader does not support cocos2d?
Replies: 1
Views: 4227

Another Shader,same black screen

<vertex>
attribute vec4 a_position;
attribute vec2 a_texcoord0;

varying vec2 v_position;

void main()
{
gl_Position = a_position;

v_position = a_texcoord0;
}

</vertex>
<fragment>
uniform sampler2D sampler0;
varying vec2 v_position;

uniform vec2 u ...
by 大小姐
Wed May 27, 2015 3:32 am
Forum: General
Topic: Shader does not support cocos2d?
Replies: 1
Views: 4227

Shader does not support cocos2d?

This is my transplant come from cocos2d shader
But drastic will be black Screen



<vertex>

attribute vec4 a_color;
attribute vec4 a_position;
varying vec4 v_color;
uniform mat4 u_MVPMatrix;
void main()
{
v_color = a_color;
gl_Position = u_MVPMatrix * a_position;
}
</vertex>
<fragment ...
by 大小姐
Tue May 26, 2015 5:11 am
Forum: General
Topic: About Shaders problem
Replies: 1
Views: 4475

About Shaders problem

I transplanted some shaders for drastic,but some shaders can not work and the official linear。
The following screen will shrink
Must be deleted dex Configuration

<texture:1>
input=null
format=GL_RGBA
internalformat=GL_RGBA
type=GL_UNSIGNED_BYTE
min_filter=GL_LINEAR
mag_filter=GL_LINEAR
</texture ...