
; Grid shaders

Technique DefaultGrid
	Pass true

		; Render states
			Clipping		true
			Lighting		false
			SpecularEnable		false
			AlphaBlending		true
			ZWrite			false
			SrcBlend		ABLEND_SRCALPHA
			DestBlend		ABLEND_INVSRCALPHA
			CullMode		CULL_NONE

		; Textures
		TextureStage 0
			TextureBitmap		Grid
			TextureColorOp		STAGEOP_SELECTARG1
			TextureColorArg1	STAGEARG_TEXTURE
			TextureColorArg2	STAGEARG_DIFFUSE
			TextureAlphaOp		STAGEOP_SELECTARG1
			TextureAlphaArg1	STAGEARG_TEXTURE
			TextureAlphaArg2	STAGEARG_DIFFUSE
			TextureCoordIndex	0
			TextureAddressU		TADDRESS_WRAP
			TextureAddressV		TADDRESS_WRAP
			;TextureBorder		0
			TextureMagFilter	TFG_LINEAR
			TextureMinFilter	TFN_LINEAR
			TextureMipFilter	TFP_LINEAR
			TextureMipmapLodBias	0.0f
			;TextureMaxMipmapLevel	0
			;TextureMaxAnisotropy	0
			TextureTransflags	TTFF_DISABLE
			;TextureWrapU		bool
			;TextureWrapV		bool

		TextureStage 1
			TextureColorOp		STAGEOP_DISABLE
			TextureAlphaOp		STAGEOP_DISABLE

Technique Rock
	Pass true

		; Render states
			Clipping		true
			Lighting		false
			SpecularEnable		false
			AlphaBlending		false
			ZWrite			true
			CullMode		CULL_NONE

		; Textures
		TextureStage 0
			TextureBitmap		ROCK-Fragmented.tga
			TextureColorOp		STAGEOP_SELECTARG1
			TextureColorArg1	STAGEARG_TEXTURE
			TextureColorArg2	STAGEARG_DIFFUSE
			TextureAlphaOp		STAGEOP_SELECTARG1
			TextureAlphaArg1	STAGEARG_DIFFUSE
			TextureAlphaArg2	STAGEARG_DIFFUSE
			TextureCoordIndex	0
			TextureAddressU		TADDRESS_WRAP
			TextureAddressV		TADDRESS_WRAP
			;TextureBorder		0
			TextureMagFilter	TFG_LINEAR
			TextureMinFilter	TFN_LINEAR
			TextureMipFilter	TFP_LINEAR
			TextureMipmapLodBias	0.0f
			;TextureMaxMipmapLevel	0
			;TextureMaxAnisotropy	0
			TextureTransflags	TTFF_DISABLE
			;TextureWrapU		bool
			;TextureWrapV		bool

		TextureStage 1
			TextureColorOp		STAGEOP_DISABLE
			TextureAlphaOp		STAGEOP_DISABLE

Technique Water
	Pass true

		; Render states
			Clipping		true
			Lighting		false
			SpecularEnable		false
			AlphaBlending		false
			ZWrite			true
			SrcBlend		ABLEND_ONE
			DestBlend		ABLEND_ONE
			CullMode		CULL_NONE

;		AlphaBlending		true
;		ZWrite			false
;		SrcBlend		ABLEND_SRCALPHA
;		DestBlend		ABLEND_INVSRCALPHA
;
;		Dynamic	VAL_TFACTOR_A FUNC_SIN	0.5f 0.5f 0.0f 4.0f

		; Textures
		TextureStage 0
			TextureBitmap		water4.bmp
;			TextureBitmap		x:\Media\Textures\Water\water.png
			TextureColorOp		STAGEOP_SELECTARG1
			TextureColorArg1	STAGEARG_TEXTURE
			TextureColorArg2	STAGEARG_DIFFUSE
			TextureAlphaOp		STAGEOP_SELECTARG1
			TextureAlphaArg1	STAGEARG_DIFFUSE
;		TextureAlphaArg1	STAGEARG_TFACTOR
			TextureAlphaArg2	STAGEARG_DIFFUSE
			TextureCoordIndex	0
			TextureAddressU		TADDRESS_WRAP
			TextureAddressV		TADDRESS_WRAP
			;TextureBorder		0
			TextureMagFilter	TFG_LINEAR
			TextureMinFilter	TFN_LINEAR
			TextureMipFilter	TFP_POINT
			TextureMipmapLodBias	0.0f
			;TextureMaxMipmapLevel	0
			;TextureMaxAnisotropy	0
;			TextureTransflags	TTFF_DISABLE
			;TextureWrapU		bool
			;TextureWrapV		bool

			TextureTransflags	TTFF_COUNT3
			Dynamic	VAL_TEXTURE0_POSITION_X FUNC_IDENTITY	0.0f 1.0f 0.0f 0.042f

		TextureStage 1
			TextureBitmap		water4.bmp
;			TextureBitmap		x:\Media\Textures\Water\water.png
			TextureColorOp		STAGEOP_ADDSMOOTH
			TextureColorArg1	STAGEARG_TEXTURE
			TextureColorArg2	STAGEARG_CURRENT
			TextureAlphaOp		STAGEOP_SELECTARG1
;		TextureAlphaArg1	STAGEARG_TFACTOR
			TextureAlphaArg1	STAGEARG_DIFFUSE
			TextureAlphaArg2	STAGEARG_DIFFUSE
			TextureCoordIndex	0
			TextureAddressU		TADDRESS_WRAP
			TextureAddressV		TADDRESS_WRAP
			;TextureBorder		0
			TextureMagFilter	TFG_LINEAR
			TextureMinFilter	TFN_LINEAR
			TextureMipFilter	TFP_POINT
			TextureMipmapLodBias	0.0f
			;TextureMaxMipmapLevel	0
			;TextureMaxAnisotropy	0
;			TextureTransflags	TTFF_DISABLE
			;TextureWrapU		bool
			;TextureWrapV		bool

			TextureTransflags	TTFF_COUNT3
			Dynamic	VAL_TEXTURE1_POSITION_Y FUNC_IDENTITY	0.0f 1.0f 0.0f 0.03f

		TextureStage 2
			TextureColorOp		STAGEOP_DISABLE
			TextureAlphaOp		STAGEOP_DISABLE

Technique Checkered
	Pass true

		; Render states
			Clipping		true
			Lighting		false
			SpecularEnable		false
			AlphaBlending		false
			ZWrite			true
			CullMode		CULL_NONE

		; Textures
		TextureStage 0
			TextureBitmap		Checkerboard2.bmp
			TextureColorOp		STAGEOP_SELECTARG1
			TextureColorArg1	STAGEARG_TEXTURE
			TextureColorArg2	STAGEARG_DIFFUSE
			TextureAlphaOp		STAGEOP_SELECTARG1
			TextureAlphaArg1	STAGEARG_DIFFUSE
			TextureAlphaArg2	STAGEARG_DIFFUSE
			TextureCoordIndex	0
			TextureAddressU		TADDRESS_WRAP
			TextureAddressV		TADDRESS_WRAP
			;TextureBorder		0
			TextureMagFilter	TFG_LINEAR
			TextureMinFilter	TFN_LINEAR
			TextureMipFilter	TFP_LINEAR
			TextureMipmapLodBias	0.0f
			;TextureMaxMipmapLevel	0
			;TextureMaxAnisotropy	0
			TextureTransflags	TTFF_DISABLE
			;TextureWrapU		bool
			;TextureWrapV		bool

		TextureStage 1
			TextureColorOp		STAGEOP_DISABLE
			TextureAlphaOp		STAGEOP_DISABLE

