mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 23:34:39 +02:00
improvment ?
This commit is contained in:
parent
79be37f78f
commit
dcd61fd417
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ vec3 paintRainbow(float nv) {
|
|||
|
||||
vec2 unpackStatus(int v) {
|
||||
// return unpackSnorm2x16(uint(packed));
|
||||
return vec2(clamp((float(uint(v) & 0xFFFF) - 32727.0) / 32727.0, -1.0, 1.0),
|
||||
clamp((float((uint(v) >> 16) & 0xFFFF) - 32727.0) / 32727.0, -1.0, 1.0));
|
||||
return vec2(clamp(float((v & 0xFFFF) - 32727) / 32727.0, -1.0, 1.0),
|
||||
clamp(float(((v >> 16) & 0xFFFF) - 32727) / 32727.0, -1.0, 1.0));
|
||||
}
|
||||
|
||||
void main(void) {
|
||||
|
|
Loading…
Reference in a new issue