2015-09-02 16:30:24 +08:00
|
|
|
// A "Material" file can contain one or more materials
|
|
|
|
material CubeMap
|
|
|
|
{
|
|
|
|
technique normal
|
|
|
|
{
|
|
|
|
pass 0
|
|
|
|
{
|
|
|
|
shader
|
|
|
|
{
|
2022-07-05 14:48:46 +08:00
|
|
|
vertexShader = MeshRendererTest/cube_map.vert
|
|
|
|
fragmentShader = MeshRendererTest/cube_map.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_cubeTex
|
|
|
|
{
|
2022-07-05 14:48:46 +08:00
|
|
|
path = MeshRendererTest/skybox/left.jpg
|
2015-09-02 16:30:24 +08:00
|
|
|
wrapS = GL_CLAMP_TO_EDGE
|
|
|
|
wrapT = GL_CLAMP_TO_EDGE
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|