mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* Implementing a bunch of Unimplemented MRM stubs.
This commit is contained in:
@@ -91,24 +91,45 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||
public bool Bright
|
||||
{
|
||||
get { return GetTexface().Fullbright; }
|
||||
set { throw new System.NotImplementedException(); }
|
||||
set
|
||||
{
|
||||
Primitive.TextureEntry tex = m_parent.Shape.Textures;
|
||||
Primitive.TextureEntryFace texface = tex.CreateFace((uint)m_face);
|
||||
texface.Fullbright = value;
|
||||
tex.FaceTextures[m_face] = texface;
|
||||
m_parent.UpdateTexture(tex);
|
||||
}
|
||||
}
|
||||
|
||||
public double Bloom
|
||||
{
|
||||
get { return GetTexface().Glow; }
|
||||
set { throw new System.NotImplementedException(); }
|
||||
set
|
||||
{
|
||||
Primitive.TextureEntry tex = m_parent.Shape.Textures;
|
||||
Primitive.TextureEntryFace texface = tex.CreateFace((uint)m_face);
|
||||
texface.Glow = (float) value;
|
||||
tex.FaceTextures[m_face] = texface;
|
||||
m_parent.UpdateTexture(tex);
|
||||
}
|
||||
}
|
||||
|
||||
public bool Shiny
|
||||
{
|
||||
get { return GetTexface().Shiny != Shininess.None; }
|
||||
set { throw new System.NotImplementedException(); }
|
||||
set
|
||||
{
|
||||
Primitive.TextureEntry tex = m_parent.Shape.Textures;
|
||||
Primitive.TextureEntryFace texface = tex.CreateFace((uint)m_face);
|
||||
texface.Shiny = value ? Shininess.High : Shininess.None;
|
||||
tex.FaceTextures[m_face] = texface;
|
||||
m_parent.UpdateTexture(tex);
|
||||
}
|
||||
}
|
||||
|
||||
public bool BumpMap
|
||||
{
|
||||
get { throw new System.NotImplementedException(); }
|
||||
get { return GetTexface().Bump == Bumpiness.None; }
|
||||
set { throw new System.NotImplementedException(); }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user