<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gin_graphic</author_name>
  <author_url>https://blog.hatena.ne.jp/gin_graphic/</author_url>
  <blog_title>ギンの備忘録</blog_title>
  <blog_url>https://gin-graphic.hatenablog.com/</blog_url>
  <categories>
    <anon>GLSL</anon>
    <anon>p5.js</anon>
  </categories>
  <description>p5.jsで3D図形のBoxにシェーダーを適用させてみます。 Boxの法線 Boxの各面を塗り分ける まとめ 参考文献 Boxの法線 Box（立方体）は面を6面持つ3D図形です。 それぞれの面に対して垂直方向を表すのが法線になります。 6面の面はxyzの3方向に向いており、それぞれ+x方向、-x方向、+y方向、-y方向、+z方向、-z方向の法線となっています。 Boxの各面を塗り分ける 法線はattribute vec3 aNormal;で取り扱われています。 これを頂点シェーダーからフラグメントシェーダーへvarying vec3 vNormal;として渡します。 このvNormalがBox…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgin-graphic.hatenablog.com%2Fentry%2F2021%2F01%2F17%2F214046&quot; title=&quot;p5.js+シェーダー（GLSL） - Boxの法線で面を塗り分ける - ギンの備忘録&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/g/gin_graphic/20210117/20210117211427.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-17 21:40:46</published>
  <title>p5.js+シェーダー（GLSL） - Boxの法線で面を塗り分ける</title>
  <type>rich</type>
  <url>https://gin-graphic.hatenablog.com/entry/2021/01/17/214046</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
