示例#1
0
        private void colorPickerLauncher3_SelectedColorChanged(object sender, EventArgs e)
        {
            Color col = colorPickerLauncher3.SelectedColor;

            TerrainGlobals.getRender().mCursorColorTint.X = col.R / 255.0f;
            TerrainGlobals.getRender().mCursorColorTint.Y = col.G / 255.0f;
            TerrainGlobals.getRender().mCursorColorTint.Z = col.B / 255.0f;
            TerrainGlobals.getRender().mCursorColorTint.W = 1;
        }