This commit is contained in:
2025-11-20 16:05:02 +00:00
parent 602b162d41
commit bbb682242d
3 changed files with 8 additions and 5 deletions
+6 -3
View File
@@ -9,9 +9,12 @@ void main()
{
float d = dot(vControls,vControls);
if (d > 1) {discard;}
// the following is an alternative without using discard
// not sure how this would interact with bloom
//float d = min(dot(vControls,vControls),1);
fCol = vec4(vCol.xyz,vCol.w*(1-d));
fPos = vec4(vPos, fCol.w);
float a = vCol.w*(1-d);
fCol = vec4(vCol.xyz,a);
fPos = vec4(vPos, a);
//fNorm = vec4(-vControls, -0.1 + 0.2 * d ,fCol.w);
fNorm = vec4(-vControls, -0.1 + 0.3 * d ,fCol.w);
fNorm = vec4(-vControls, -0.1 + 0.3 * d ,a);
}