このページでは、サーフェスシェーダーのカスタムサーフェスシェーダーのライティングモデルの例を紹介します。もっと一般的なサーフェスシェーダーについては、サーフェスシェーダーの例を参照してください。 Because Deferred Shading does not play well with custom per-material lighting models, most of the examples below make the shaders compile to Forward Rendering only. レンダーパイプラインの互換性 機能名 ビルトインレンダーパイプライン ユニバーサルレンダーパイプライン (URP) HD レンダーパイプライン (HDRP) カスタム SRP ディフューズ 以下は、ビルトインの Lambert ライティングモデルを使用するシェーダーです。
![サーフェスシェーダーライティングの例 - Unity マニュアル](https://cdn-ak-scissors.b.st-hatena.com/image/square/d533ce1fc5d8b6816e57252c8bd0e4e73c7593c8/height=288;version=1;width=512/https%3A%2F%2Fdocs.unity3d.com%2Fja%2F2022.3%2Fuploads%2FMain%2FSurfaceShaderDiffuseTexture.jpg)