搜尋套件、儲存庫與 APP 分類

套件詳情v0.1.0-dev.8

umbra_cli

Umbra CLI 允許 Flutter 開發者建立自己的著色器,並編譯成強類型 Dart 檔案。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
29
喜歡數
35
Pub 分數
120

安裝套件

flutter pub add umbra_cli

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Umbra CLI 是 Flutter 開發者用來建立自訂著色器並自動編譯成強型別 Dart 檔案的工具。它透過將著色器程式碼抽象為可使用的 Dart 類別,簡化了進階視覺效果的整合,進而於多個平台實現動態且高效能的圖形效果。此工具專為處理背景效果、漸層與即時視覺化效果的開發人員設計,透過減少重複程式碼並提升類型安全性,提升工作流程效率。該工具支援 Android、iOS、Web、macOS、Windows 與 Linux,非常適合需要豐富圖形內容的跨平台專案。

適用情境

  • 建立自訂漸變效果
  • 實現動態背景視覺效果
  • 使用著色器構建互動式使用者介面元素
  • 開發效能優化的圖形
  • 在跨平台應用中整合複雜的視覺效果

主要特色

  • 從著色器自動產生類型化的 Dart 類
  • 支援多個目標平台
  • 減少著色器整合樣板程式碼
  • 強制執行著色器使用中的類型安全性
  • 簡化著色器生命週期管理

適合對象

  • Flutter 開發人員建構視覺豐富的應用程式
  • 需要一致著色器工作流程的團隊
  • 需要高效率圖形的項目
  • 使用動態背景或動畫的開發人員
  • 跨平台應用程式創建者使用自訂著色器

使用建議

  • 需要熟悉 GLSL 着色器語法
  • 使用大型著色器集時可能會增加建構時間
  • 受限於 Flutter 的渲染管道
  • 最適合非簡單視覺效果
  • 需要在專案建構過程中進行正確設定

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Umbra

umbra coverage style: very good analysis License: MIT Powered by Mason


The visual editor for shaders in Flutter.

umbra /ˈʌmbrə/

noun:

  1. the fully shaded inner region of a shadow cast by an opaque object, especially the area on the earth or moon experiencing the total phase of an eclipse.
  2. LITERARY
    shadow or darkness.
    "an impenetrable umbra seemed to fill every inch of the museum"

Packages

Package Pub
umbra pub package
umbra_cli pub package
umbra_flutter pub package

Quick start

For a getting started with Umbra check out the getting started section in the docs.

# 🎯 Activate from https://pub.dev
dart pub global activate umbra_cli

# 🚀 Install umbra dependencies
umbra install-deps

# 🕶️ Create your first shader
umbra create hello_world

# 📦 Compile your first shader to a Dart file
umbra generate shaders/hello_world.glsl --output lib/shaders/

Documentation

For the documentation that describes how you should writing shaders that are compatible with Umbra tooling, see the Shader Specifications documentation.

Documentation about the CLI can be found here.

Articles

If you are looking for more general information about shaders in Flutter, here is a list of articles:

所屬分類

依賴

依賴清單 8 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。