// chocolate gourami

:if ($GLSL) {
	:CERR "GLSL WAS SENSED"
	:GLSLshader
	:vshader "varying vec2 texture_coordinate;"
	:vshader "varying vec4 color;"
	:vshader "void main() {"
	:vshader "  texture_coordinate = vec2(gl_MultiTexCoord0);"
	:vshader "  gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;"
	:vshader "  color = vec4( gl_Color.r, gl_Color.g, gl_Color.b, gl_Color.a );"
	:vshader "}"

	:fshader "varying vec4 color;"
	:fshader "varying vec2 texture_coordinate;"
	:fshader "uniform sampler2D tex1;"
	:fshader "void main() {"
	:fshader "  gl_FragColor = color * texture2D(tex1, texture_coordinate);"
	:fshader "}"

	:set diffuseMultiply 1
	:addStage {
		:chans 4
		:tex body.sgi
		:combine MODULATE
		:uvIndex 0
		:useAlpha
	}
}
:else {
	
	:addStage {
		:chans 4
		:tex body.sgi
		:arg1 DIFFUSE
		:arg2 TEXTURE
		:combine MODULATE2X
		:uvIndex 0
		:useAlpha
	}
	:set diffuseMultiply .5
}
:dontUpdate uv
:doAlphaMultWhenOpaque 0
:doAlphaMultWhenTransparent 1
