I have a foundational problem with LOD and Scheme in Ogre Material System.
I want say that select (High,Medium,Low) Scheme when my object distance is less than 90, and select (Low) material when my object distance is greater than 90(not dependent to Scheme).
How can i do that? one way is that i use 6 techniques but oFusion don't support 6 techniques per matrial, it only support 4 techniques.
Anyone can abstract it to 4 techniques?
Here is my first way (6 techniques):
Code: Select all
material LODMat
{
lod_distances 90
technique
{
scheme High
pass
{
ambient 1 1 1 1
diffuse 1 1 1 1
specular 1 1 1 1 10
emissive 1 1 1 1
}
}
technique
{
scheme Medium
lod_index 0
pass
{
ambient 1 0 0 1
diffuse 1 0 0 1
specular 1 0 0 1 10
emissive 0.5 0.5 0.5 0.5
}
}
technique
{
scheme Low
lod_index 0
pass
{
ambient 0 1 0 1
diffuse 0 1 0 1
specular 0 1 0 1 10
emissive 0.5 0.5 0.5 0.5
}
}
technique
{
lod_index 1
scheme Low
pass
{
ambient 1 0 1 1
diffuse 1 0 1 1
specular 1 0 1 1 10
emissive 0.5 0.5 0.5 0.5
}
}
technique
{
lod_index 1
scheme Medium
pass
{
ambient 0 1 1 1
diffuse 0 1 1 1
specular 0 1 1 1 10
emissive 0.5 0.5 0.5 0.5
}
}
technique
{
lod_index 1
scheme High
pass
{
ambient 1 1 0 1
diffuse 1 1 0 1
specular 1 1 0 1 10
emissive 0.5 0.5 0.5 0.5
}
}
}
Thanks for any help