12.material

material的主要是写脚本~

material MyMaterial1
{
	technique
	{
		pass
		{
			texture_unit
			{
				texture leaf.png
				tex_address_mode clamp
			}
		}
	}
}

material MyMaterial11
{
	technique
	{
		pass
		{
			texture_unit texture1
			{
				texture terr_rock6.jpg
				rotate_anim 0.1
			}
		}
	}
}

material MyMaterial12 : MyMaterial11
{
	set_texture_alias texture1 Water02.jpg
}
tex_address_mode就是贴图的方式啦~值得注意的是在border模式下可以通过tex_border_color更改背景颜色。

rotate_anim就是旋转~scroll_anim就是滚动~

最后一个例子是通过继承创建材质,将贴图换成Water02.jpg,其他属性保留。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值