{"version":"1.0","author_url":"https://blog.hatena.ne.jp/mawasi99/","title":"GLSL\u95a2\u6570\u30e1\u30e2","categories":["Programming"],"height":"190","blog_title":"mawasi\u306e\u5099\u5fd8\u9332","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmawasi.hateblo.jp%2Fentry%2F2025%2F03%2F02%2F143518\" title=\"GLSL\u95a2\u6570\u30e1\u30e2 - mawasi\u306e\u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","image_url":null,"author_name":"mawasi99","published":"2025-03-02 14:35:18","provider_name":"Hatena Blog","width":"100%","url":"https://mawasi.hateblo.jp/entry/2025/03/02/143518","provider_url":"https://hatena.blog","blog_url":"https://mawasi.hateblo.jp/","description":"ShaderToy\u3067\u904a\u3076\u3068\u304d\u306e\u81ea\u5206\u7528\u306e\u95a2\u6570\u30c1\u30fc\u30c8\u30b7\u30fc\u30c8 glsl\u95a2\u6570 \u95a2\u6570 \u8aac\u660e radians(x) x\u3092\u5ea6\u304b\u3089\u30e9\u30b8\u30a2\u30f3\u306b\u5909\u63db\u3059\u308b degree(x) x\u3092\u30e9\u30b8\u30a2\u30f3\u304b\u3089\u5ea6\u306b\u5909\u63db\u3059\u308b abs(x) x\u306e\u7d76\u5bfe\u5024\u3092\u8fd4\u3059 sign(x) x\u304c\u6b63\u306a\u3089+1.0\u30010.0\u306a\u30890.0\u3001\u8ca0\u306a\u3089-1.0\u3092\u8fd4\u3059 floor(x) x\u4ee5\u4e0b\u306e\u6700\u3082\u8fd1\u3044\u6574\u6570\u306b\u7b49\u3057\u3044\u5024\u3092\u8fd4\u3059(0.5\u306a\u30890) ceil(x) x\u4ee5\u4e0a\u306e\u6700\u3082\u8fd1\u3044\u6574\u6570\u306b\u7b49\u3057\u3044\u5024\u3092\u8fd4\u3059(0.5\u306a\u30891) fract(x) x-floor(x)\u3092\u8fd4\u3059 mod(x, y) x-y*floor(x/y)\u3092\u8fd4\u3059 min(x, y) x\u3068y\u306e\u3088\u308a\u5c0f\u3055\u3044\u5024\u3092\u8fd4\u3059 max(x, y\u2026"}