mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-23 11:05:29 -05:00
Divide ColorSpace enum
This commit is contained in:
@@ -3,12 +3,6 @@ using UnityEngine;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
public enum ColorSpace
|
||||
{
|
||||
sRGB,
|
||||
Linear,
|
||||
}
|
||||
|
||||
public static class ColorConversionExtensions
|
||||
{
|
||||
public static float[] ToFloat4(this Color src, ColorSpace srcColorSpace, ColorSpace dstColorSpace)
|
||||
|
||||
8
Assets/VRMShaders/GLTF/IO/Runtime/ColorSpace.cs
Normal file
8
Assets/VRMShaders/GLTF/IO/Runtime/ColorSpace.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace UniGLTF
|
||||
{
|
||||
public enum ColorSpace
|
||||
{
|
||||
sRGB,
|
||||
Linear,
|
||||
}
|
||||
}
|
||||
3
Assets/VRMShaders/GLTF/IO/Runtime/ColorSpace.cs.meta
Normal file
3
Assets/VRMShaders/GLTF/IO/Runtime/ColorSpace.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5e97eeb2080e43e18ba57f1a3820a7e6
|
||||
timeCreated: 1620901197
|
||||
Reference in New Issue
Block a user