LightColorMultiplier() 공개 메소드

public LightColorMultiplier ( float &r, float &g, float &b ) : void
r float
g float
b float
리턴 void
예제 #1
0
        public static void LightColorMultiplier(int style, ref float r, ref float g, ref float b)
        {
            ModWaterStyle waterStyle = GetWaterStyle(style);

            if (waterStyle != null)
            {
                waterStyle.LightColorMultiplier(ref r, ref g, ref b);
                r *= Lighting.negLight * Lighting.blueWave;
                g *= Lighting.negLight * Lighting.blueWave;
                b *= Lighting.negLight * Lighting.blueWave;
            }
        }
예제 #2
0
        public static void LightColorMultiplier(int style, ref float r, ref float g, ref float b)
        {
            ModWaterStyle waterStyle = GetWaterStyle(style);

            if (waterStyle != null)
            {
                waterStyle.LightColorMultiplier(ref r, ref g, ref b);

                r *= Lighting.LegacyEngine._negLight * Lighting.LegacyEngine._blueWave;
                g *= Lighting.LegacyEngine._negLight * Lighting.LegacyEngine._blueWave;
                b *= Lighting.LegacyEngine._negLight * Lighting.LegacyEngine._blueWave;

                //TODO: Make this work with the new lighting engine.
            }
        }