private float ShinyToPercent(OpenMetaverse.Shininess shininess)
        {
            switch (shininess)
            {
            case OpenMetaverse.Shininess.High:
                return(1.0f);

            case OpenMetaverse.Shininess.Medium:
                return(0.5f);

            case OpenMetaverse.Shininess.Low:
                return(0.25f);
            }

            return(0.0f);
        }
示例#2
0
 public MaterialInfo(OMVR.Face face, OMV.Primitive.TextureEntryFace defaultTexture)
 {
     handle      = new EntityHandleUUID();
     faceTexture = face.TextureFace;
     if (faceTexture == null)
     {
         faceTexture = defaultTexture;
     }
     textureID = faceTexture.TextureID;
     if (faceTexture.RGBA.A != 1f)
     {
         fullAlpha = true;
     }
     RGBA     = faceTexture.RGBA;
     bump     = faceTexture.Bump;
     glow     = faceTexture.Glow;
     shiny    = faceTexture.Shiny;
     twoSided = ConvOAR.Globals.parms.P <bool>("DoubleSided");
 }