From 331b2ad4d602016f9bb3d03be759fd81fed50c10 Mon Sep 17 00:00:00 2001 From: hwc487 Date: Fri, 13 Apr 2012 07:08:42 -0700 Subject: Cloud Material --- assets/shaders/Cloud.frag.glsl | 4 ++-- assets/shaders/Cloud.vert.glsl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'assets') diff --git a/assets/shaders/Cloud.frag.glsl b/assets/shaders/Cloud.frag.glsl index 522e17bb..b07bb627 100644 --- a/assets/shaders/Cloud.frag.glsl +++ b/assets/shaders/Cloud.frag.glsl @@ -12,12 +12,12 @@ precision highp float; uniform sampler2D u_tex0; uniform float u_surfaceAlpha; -varying vec4 v_Colors; varying vec2 v_texCoord0; void main() { - gl_FragColor = texture2D(u_tex0, v_texCoord0) * u_surfaceAlpha; + // gl_FragColor = texture2D(u_tex0, v_texCoord0) * u_surfaceAlpha; + gl_FragColor = vec4(1,0,0,1); } \ No newline at end of file diff --git a/assets/shaders/Cloud.vert.glsl b/assets/shaders/Cloud.vert.glsl index c673e40c..9a235349 100644 --- a/assets/shaders/Cloud.vert.glsl +++ b/assets/shaders/Cloud.vert.glsl @@ -35,7 +35,7 @@ void main() { // Transform position vec4 pos = vec4(a_pos,1); - pos.z += u_time*zSpeed; + //pos.z += u_time*zSpeed; gl_Position = u_projMatrix * u_mvMatrix * pos; v_texCoord0 = texcoord; -- cgit v1.2.3