mirror of
https://github.com/overte-org/overte.git
synced 2025-08-16 23:22:30 +02:00
improvment ?
This commit is contained in:
parent
bf052162bb
commit
79be37f78f
2 changed files with 4 additions and 3 deletions
|
@ -174,7 +174,8 @@ void makeEntityItemStatusGetters(RenderableModelEntityItem* entity, render::Item
|
|||
});
|
||||
statusGetters.push_back([entity] () -> render::Item::Status::Value {
|
||||
quint64 delta = usecTimestampNow() - entity->getLastBroadcast();
|
||||
return render::Item::Status::Value((delta / (0.02f * USECS_PER_SECOND)), 0.5f);
|
||||
// return render::Item::Status::Value((delta / (0.02f * USECS_PER_SECOND)), 0.5f);
|
||||
return render::Item::Status::Value(1.0f, 0.5f);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -42,8 +42,8 @@ vec3 paintRainbow(float nv) {
|
|||
|
||||
vec2 unpackStatus(int v) {
|
||||
// return unpackSnorm2x16(uint(packed));
|
||||
return vec2(clamp((float(v & 0xFFFF) - 32727.0) / 32727.0, -1.0, 1.0),
|
||||
clamp((float((v >> 16) & 0xFFFF) - 32727.0) / 32727.0, -1.0, 1.0));
|
||||
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));
|
||||
}
|
||||
|
||||
void main(void) {
|
||||
|
|
Loading…
Reference in a new issue