mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-18 16:21:50 -05:00
Divide ColorSpace enum
This commit is contained in:
parent
13b9c5e843
commit
72a922ded9
|
|
@ -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
|
||||
Loading…
Reference in New Issue
Block a user