Fixed GTC_packing unpackUnorm3x10_1x2 #414
This commit is contained in:
parent
d649b97250
commit
7f6e60864a
@ -451,7 +451,7 @@ namespace detail
|
|||||||
|
|
||||||
GLM_FUNC_QUALIFIER uint32 packUnorm3x10_1x2(vec4 const & v)
|
GLM_FUNC_QUALIFIER uint32 packUnorm3x10_1x2(vec4 const & v)
|
||||||
{
|
{
|
||||||
uvec4 const Unpack(round(clamp(v, 0.0f, 1.0f) * vec4(1.0f / 1023.f, 1.0f / 1023.f, 1.0f / 1023.f, 1.0f / 3.f)));
|
uvec4 const Unpack(round(clamp(v, 0.0f, 1.0f) * vec4(1023.f, 1023.f, 1023.f, 3.f)));
|
||||||
|
|
||||||
detail::u10u10u10u2 Result;
|
detail::u10u10u10u2 Result;
|
||||||
Result.data.x = Unpack.x;
|
Result.data.x = Unpack.x;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user