groworld/plant-eyes/shaders/ribbon.frag.glsl
Dave Griffiths 990736cd5c more fixes
2009-10-22 11:31:11 +01:00

14 lines
289 B
GLSL

varying vec2 T;
uniform sampler2D BaseMap;
varying vec3 P;
uniform vec3 Origin;
void main()
{
vec4 MidColour=mix(vec4(0.171,0.273,0.336,1),
gl_FrontMaterial.diffuse,
smoothstep(-2.0,2.0,P.y+Origin.y));
gl_FragColor = vec4(MidColour.xyz*texture2D(BaseMap, T).xyz,1);
}