2015-09-02 16:30:24 +08:00
|
|
|
// A "Material" file can contain one or more materials
|
|
|
|
material FakeShadow
|
|
|
|
{
|
|
|
|
technique normal
|
|
|
|
{
|
|
|
|
pass 0
|
|
|
|
{
|
|
|
|
shader
|
|
|
|
{
|
2022-07-05 14:48:46 +08:00
|
|
|
vertexShader = MeshRendererTest/simple_shadow.vert
|
|
|
|
fragmentShader = MeshRendererTest/simple_shadow.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/plane.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/shadowCircle.png
|
2015-09-02 16:30:24 +08:00
|
|
|
wrapS = CLAMP_TO_EDGE
|
|
|
|
wrapT = CLAMP_TO_EDGE
|
|
|
|
minFilter = LINEAR
|
|
|
|
magFilter = LINEAR
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|