Search found 3 matches
- Wed May 27, 2015 3:37 am
- Forum: General
- Topic: Shader does not support cocos2d?
- Replies: 1
- Views: 3762
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_texelDelta; uniform v...
- Wed May 27, 2015 3:32 am
- Forum: General
- Topic: Shader does not support cocos2d?
- Replies: 1
- Views: 3762
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> varying vec4 v_c...
- Tue May 26, 2015 5:11 am
- Forum: General
- Topic: About Shaders problem
- Replies: 1
- Views: 3870
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> <p...