AGENT SKILL

babylonjs-build-materials

Implement Babylon.js PBR, node or shader materials with explicit texture conventions, renderer support and measured cost.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 4
Forks
3

01 前言 Front Matter

name
babylonjs-build-materials
engines
[ "BABYLONJS" ]
description
Implement Babylon.js PBR, node or shader materials with explicit texture conventions, renderer support and measured cost.

02 资源文件 1

03 SKILL.md 正文

Build Babylon.js Materials

When to use

Author or diagnose game materials, node graphs, custom shaders or post-processing in Babylon.js.

Engine and dependencies

Before edits or tool launches, run resolve-engine.sh and resolve-skill.sh babylonjs-build-materials; require compatibility and honor task override scope. Read the Babylon revision, WebGL/WebGPU selection, material contract, art pipeline and shader/texture budgets. Additional material libraries and external textures remain explicit dependencies with rights evidence.

Workflow

  1. Choose PBRMaterial, a supported simplified PBR material, NodeMaterial, or a justified ShaderMaterial for the effect. Keep the graph/source and exposed tuning parameters in the project rather than depending on a remote snippet at runtime.
  2. Declare metallic/roughness workflow and packed texture channels. PBRMaterial properties differ from simplified material names: verify albedo, bump, reflection and metallic texture mappings instead of assuming glTF channel defaults on every hand-authored material.
  3. Match normal orientation, UV sets, alpha-test/blend mode, sidedness, environment textures and image-processing configuration. Apply tone mapping/color transforms once across material and post-process stages.
  4. Verify node/custom shader compatibility with the selected backend and revision. Bound variants, texture sizes, transparency, lights, shadows and render targets; update parameters without unnecessary recompiles. Report unsupported effects instead of silently replacing the renderer.
  5. Define shared versus per-actor material ownership. Clone only when mutations need isolation; dispose owned effects, materials, textures and render targets when unused without invalidating retained scenes.

Output and verification

Deliver reproducible material definitions, texture/channel table, lighting reference and measured cost. Inspect neutral and gameplay lighting, grazing angles, cutouts/transparency, skinned meshes and quality levels on target browsers. Capture compile failures and backend limitations. Visual inspection and profiling complement shader compilation; neither structural checks nor a black-canvas screenshot proves success. Consult the PBR material guide for the installed version's property behavior.

04 同仓库更多 Skills

TimothyMeadows
TimothyMeadows/Hephaera

verify-web3-game-lifecycle

Verify a game's selected Web3 asset, wallet, ownership and trading lifecycle with contract properties, canonical recovery, actual target evidence and separate release readiness.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

verify-onchain-game-assets

Verify exact on-chain game collection ownership and quantities at canonical blocks, reconcile inventory events, and design honest match admission. Use for ERC721/ERC1155 inventory, reorg recovery, reservations, or transfer-during-match rules.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

plan-web3-game-assets

Define an opt-in Ethereum, Base or Immutable game-asset lifecycle, including token identity, supply, rights, custody, game eligibility and chain-specific dependencies.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-wallets

Integrate explicit player-wallet connection, scoped SIWE authentication, authority invalidation and reviewed target-specific handoff without application-held player keys.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-asset-trading

Integrate explicitly selected game asset settlement with exact unsigned intents, scoped approvals, idempotent operations and canonical receipt reconciliation. Use for NFT listing, buying, cancellation, retries or marketplace integration.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

build-evm-game-contracts

Author and verify host-owned EVM game collections and explicit mint, burn, craft or admin rules with pinned Solidity tooling. Use for contract source and deployment candidates; deployment and player signing require separate authorization.

★ 4