2015-09-02 16:30:24 +08:00
|
|
|
// A "Material" file can contain one or more materials
|
|
|
|
material UVAnimation
|
|
|
|
{
|
|
|
|
technique normal
|
|
|
|
{
|
|
|
|
pass 0
|
|
|
|
{
|
|
|
|
shader
|
|
|
|
{
|
2022-07-05 14:48:46 +08:00
|
|
|
vertexShader = MeshRendererTest/cylinder.vert
|
|
|
|
fragmentShader = MeshRendererTest/cylinder.frag
|
2015-09-02 16:30:24 +08:00
|
|
|
// sampler:
|
|
|
|
// responsible for setting the texture and its parameters
|
|
|
|
// the Id of the sampler is the uniform name
|
|
|
|
sampler u_sampler0
|
|
|
|
{
|
2022-07-05 14:48:46 +08:00
|
|
|
path = MeshRendererTest/dragon.png
|
2015-09-02 16:30:24 +08:00
|
|
|
wrapS = REPEAT
|
|
|
|
wrapT = REPEAT
|
|
|
|
}
|
|
|
|
|
|
|
|
sampler u_sampler1
|
|
|
|
{
|
2022-07-05 14:48:46 +08:00
|
|
|
path = MeshRendererTest/caustics.png
|
2015-09-02 16:30:24 +08:00
|
|
|
wrapS = REPEAT
|
|
|
|
wrapT = REPEAT
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|