mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
REndering the view rings better
This commit is contained in:
parent
e8b5a875d6
commit
4a7d3e8e0e
2 changed files with 7 additions and 5 deletions
|
@ -17,10 +17,12 @@ in vec4 varColor;
|
||||||
in vec3 varTexcoord;
|
in vec3 varTexcoord;
|
||||||
|
|
||||||
void main(void) {
|
void main(void) {
|
||||||
float r = sqrt(dot(varTexcoord.xyz,varTexcoord.xyz));
|
if (varColor.w > 0.0) {
|
||||||
float a = paintStripe(r * varColor.w, 0.0, 1.0 / varColor.w, 0.05 / varColor.w);
|
float r = sqrt(dot(varTexcoord.xyz,varTexcoord.xyz));
|
||||||
if (a <= 0.1 || r > 1.1) {
|
float a = paintStripe(r * varColor.w, 0.0, 1.0 / varColor.w, 0.05 / varColor.w);
|
||||||
discard;
|
if (a <= 0.1 || r > 1.1) {
|
||||||
|
discard;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
packDeferredFragmentUnlit(
|
packDeferredFragmentUnlit(
|
||||||
|
|
|
@ -141,5 +141,5 @@ void main(void) {
|
||||||
<$transformEyeToClipPos(cam, proxyPosEye, gl_Position)$>
|
<$transformEyeToClipPos(cam, proxyPosEye, gl_Position)$>
|
||||||
|
|
||||||
// Convert region to color
|
// Convert region to color
|
||||||
varColor = vec4(colorWheel(float(regionID) / 4.0), regionRadius);
|
varColor = vec4(colorWheel(float(regionID) / 4.0), -1.0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue