12 lines
254 B
C#
12 lines
254 B
C#
using Microsoft.Xna.Framework;
|
|
|
|
namespace Decimation.Lib.Util
|
|
{
|
|
public class LightingUtils
|
|
{
|
|
public static Vector3 Rgb255ToRgb1(int r, int g, int b)
|
|
{
|
|
return new Vector3(r / 255f, g / 255f, b / 255f);
|
|
}
|
|
}
|
|
} |