フラグメント シェーダーで単純な円を作成します。
float dist = length(gl_PointCoord - 0.5); // distance to center
float circle = smoothstep(0.3, 0.5, dist); // apply smoothing curve
そして、その周りにブルーム効果を加えます。このように: https://i.stack.imgur.com/rIS2o.png
フラグメント シェーダーで単純な円を作成します。
float dist = length(gl_PointCoord - 0.5); // distance to center
float circle = smoothstep(0.3, 0.5, dist); // apply smoothing curve
そして、その周りにブルーム効果を加えます。このように: https://i.stack.imgur.com/rIS2o.png
あなたが探しているのはRadial Gradientだと思います。このリンクは役に立ちますRadialGradient Shader