mirror of https://github.com/axmolengine/axmol.git
26 lines
693 B
Plaintext
26 lines
693 B
Plaintext
|
// A "Material" file can contain one or more materials
|
||
|
material CubeMap
|
||
|
{
|
||
|
technique normal
|
||
|
{
|
||
|
pass 0
|
||
|
{
|
||
|
shader
|
||
|
{
|
||
|
vertexShader = Sprite3DTest/cube_map.vert
|
||
|
fragmentShader = Sprite3DTest/cube_map.frag
|
||
|
// sampler:
|
||
|
// responsible for setting the texture and its parameters
|
||
|
// the Id of the sampler is the uniform name
|
||
|
sampler u_cubeTex
|
||
|
{
|
||
|
path = Sprite3DTest/skybox/left.jpg
|
||
|
wrapS = GL_CLAMP_TO_EDGE
|
||
|
wrapT = GL_CLAMP_TO_EDGE
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|