mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02: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;
|
||||
|
||||
void main(void) {
|
||||
float r = sqrt(dot(varTexcoord.xyz,varTexcoord.xyz));
|
||||
float a = paintStripe(r * varColor.w, 0.0, 1.0 / varColor.w, 0.05 / varColor.w);
|
||||
if (a <= 0.1 || r > 1.1) {
|
||||
discard;
|
||||
if (varColor.w > 0.0) {
|
||||
float r = sqrt(dot(varTexcoord.xyz,varTexcoord.xyz));
|
||||
float a = paintStripe(r * varColor.w, 0.0, 1.0 / varColor.w, 0.05 / varColor.w);
|
||||
if (a <= 0.1 || r > 1.1) {
|
||||
discard;
|
||||
}
|
||||
}
|
||||
|
||||
packDeferredFragmentUnlit(
|
||||
|
|
|
@ -141,5 +141,5 @@ void main(void) {
|
|||
<$transformEyeToClipPos(cam, proxyPosEye, gl_Position)$>
|
||||
|
||||
// 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