<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Brave345</author_name>
  <author_url>https://blog.hatena.ne.jp/Brave345/</author_url>
  <blog_title>武0武/blog</blog_title>
  <blog_url>https://bravememo.hatenablog.com/</blog_url>
  <categories>
    <anon>Shader</anon>
    <anon>Unity</anon>
  </categories>
  <description>はじめに 今回はShaderGraphで拡散反射(Diffuse)を作成していきます。 環境は Unity 2021.3.25f1です Universal Render Pipeline を使用しています。 ノード作成 ノード全体図です 拡散反射は光の向きと法線の内積で表現することができます ライトの取得はCustomFunctionノードで作成しています #ifdef SHADERGRAPH_PREVIEW Direction = half3(0.5, 0.5, 0); Color = 1; #else Light light = GetMainLight(); Direction = li…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbravememo.hatenablog.com%2Fentry%2F2023%2F02%2F06%2F120000&quot; title=&quot;【Unity】ShaderGraphで拡散反射(Diffuse)を作成する - 武0武/blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/B/Brave345/20221214/20221214154158.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-02-06 12:00:00</published>
  <title>【Unity】ShaderGraphで拡散反射(Diffuse)を作成する</title>
  <type>rich</type>
  <url>https://bravememo.hatenablog.com/entry/2023/02/06/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
