<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>doxas</author_name>
  <author_url>https://blog.hatena.ne.jp/doxas/</author_url>
  <blog_title>どくらぼ</blog_title>
  <blog_url>https://doxas.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>久しぶりに wgld.org を更新したのはいいが、サンプルを作っていて変な GLSL の仕様に悩まされた。 具体的には for ステートメントに関することだ。 まず、wgld.org のほうにも書いたが GLSL の for ステートメントには、初期化に変数が利用できないようだ。つまりは…… for(int i = xxx; i &lt; yyy; i += zzz){ ... } のように、変数 xxx などを使って for ステートメントを初期化することができないということ。これを動作するようにするためには、スカラ値を使わなくてはならない。 for(int i = 1; i &lt; 10; i +…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdoxas.hatenablog.com%2Fentry%2F2013%2F10%2F29%2F210056&quot; title=&quot;WebGL と GLSL と for ステートメント - どくらぼ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-10-29 21:00:56</published>
  <title>WebGL と GLSL と for ステートメント</title>
  <type>rich</type>
  <url>https://doxas.hatenablog.com/entry/2013/10/29/210056</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
