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
- 参考文档agents/openai.yaml256 B
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
- Choose
PBRMaterial, a supported simplified PBR material,NodeMaterial, or a justifiedShaderMaterialfor the effect. Keep the graph/source and exposed tuning parameters in the project rather than depending on a remote snippet at runtime. - Declare metallic/roughness workflow and packed texture channels.
PBRMaterialproperties differ from simplified material names: verify albedo, bump, reflection and metallic texture mappings instead of assuming glTF channel defaults on every hand-authored material. - 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.
- 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.
- 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
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.
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.
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.
integrate-game-wallets
Integrate explicit player-wallet connection, scoped SIWE authentication, authority invalidation and reviewed target-specific handoff without application-held player keys.
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.
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.