跳到內容

Shape to Shader

使用一個 Shape 為另一個 Shape 建立 Shader。

Common Attributes +

Render Quality - Shader 將 Input Shape 渲染為影像,然後用作輸出。設定影像的解析度以在品質和效能之間取得平衡:

  • High - 渲染 100% 的像素。
  • Medium - 渲染 50% 的像素。
  • Low - 渲染 25% 的像素。
  • Very Low - 渲染 12.5% 的像素。

Input Shape - 連接一個 Shape 以從中生成 Shader。

  1. 建立一個 Ellipse
  2. 建立一個 Rectangle
  3. 更改 Rectangle 的 Fill Color。
  4. 建立一個 Shape to Shader
  5. 連接 ellipse.id→shapeToShader.inputShape。
  6. 連接 shapeToShader.id→rectangle.shaders。
  7. 隱藏 Ellipse