mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:24:00 +02:00
Adding debug color of the region
This commit is contained in:
parent
d91fb543f3
commit
b1b539e07a
1 changed files with 3 additions and 1 deletions
|
@ -84,6 +84,8 @@ void main(void) {
|
|||
<$transformEyeToClipPos(cam, pos, gl_Position)$>
|
||||
|
||||
// Convert region to color
|
||||
int region = floatBitsToInt(proxy.region.x);
|
||||
region = (0x000000FF & region);
|
||||
|
||||
varColor = vec4(colorWheel(proxy.region.x), proxy.sphere.w);
|
||||
varColor = vec4(float(region) / 4.0, proxy.sphere.w);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue