11,000 種類を超える 5 つ星アセット

8.5 万人以上の顧客による評価

10 万人を超えるフォーラムメンバーが支持

すべてのアセットを Unity が審査済み

1/6
Render lines with a volumetric appearance such as laser shots or light sabers.
SRP との互換性
Unity のスクリプタブルレンダーパイプライン(SRP)は、C# スクリプトを使用してレンダリングを制御できる機能です。SRP は、ユニバーサルレンダーパイプライン(URP)と HD レンダーパイプライン(HDRP)を支えるテクノロジーです。
Unity のバージョンビルトインURPHDRP
2019.4.36f1
互換性がある
互換性がない
互換性がない
詳細

Volumetric Lines is a fast, GPU-based volumetric line renderer based on a technique by Sébastien Hillaire. It can be used to render lines with a volumetric appearance by smartly utilizing a texture. Through the use of different textures, different volumetric line effects can be achieved.



Some usage examples:


Example 1: A radial gradient texture can be used to render anti-aliased volumetric lines like laser shots or light sabers.


Example 2: A texture with a filled, solid circle positioned in the center of the square texture can be used to create the appearance of pipes.


Technically, the algorithm uses as little as 8 vertices to describe a single line and positions them smartly on the screen to create a volumetric appearance.



This package includes:


- An algorithm to render single volumetric lines, handled by the script VolumetricLineBehavior.cs


- An algorithm to render volumetric line strips, handled by the script VolumetricLineStripBehavior.cs


- Shader files, predefined materials, and presets for different appearances: Light saber, texture with additive blending, texture with alpha blending


- Three example scenes: StaticLines, LineGenerationScripts, LaserCannon



Please note that the used technique has some limitations when used with a volumetric line strip: It will not look good if there are steep angles between line segments. This limitation is inherent to the technique and cannot be overcome. However, nice results can be achieved when wide angles, and possibly a higher number of line segments are used. Please have a look at the LineGenerationScripts.scene for an example for a well-behaved volumetric line strip.


Please have a look at the release notes of version 3 which includes descriptions of various fixes and improvements, but also of a potentially breaking change regarding the line width settings.


A getting started guide can be found in the Unity Forums thread: "[RELEASED] Volumetric Lines"


Volumetric Lines is also available on GitHub where you are welcome to add contributions, create issues, and also have the opportunity to make donations in order to support the development of this asset. Your support is greatly appreciated.


For bug reports, please create an issue on GitHub. For other questions or remarks, please write to volumetriclines@gmail.com or create a post in the Unity Forums thread mentioned above.

Volumetric Lines

(207)
2757 users have favourite this asset
(2757)
FREE
ライセンス
ファイルサイズ
763.1 KB
最新バージョン
3.1.1
最新リリース日
2022年2月21日
オリジナルの Unity バージョン
2018.4.36
サポート
サイトを訪問
高品質なアセット
11,000 種類を超える 5 つ星アセット
信頼がある
8.5 万人以上の顧客による評価
コミュニティが支持
10 万人以上のフォーラムメンバーが支持
Unity logo
言語選択
フィードバック
パートナープログラム
パートナー
USD
EUR
Copyright © 2025 Unity Technologies
全ての表示価格には消費税は含まれていません
USD
EUR