{"id":113,"date":"2008-06-04T10:36:39","date_gmt":"2008-06-04T09:36:39","guid":{"rendered":"http:\/\/www.ozone3d.net\/blogs\/lab\/?p=113"},"modified":"2011-09-07T20:45:18","modified_gmt":"2011-09-07T19:45:18","slug":"glsl-float-to-rgba8-encoder","status":"publish","type":"post","link":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/","title":{"rendered":"GLSL float to RGBA8 encoder"},"content":{"rendered":"<p>Packing a [0-1] float value into a 4D vector where each component will be a 8-bits integer:<\/p>\n<pre>\r\nvec4 packFloatToVec4i(const float value)\r\n{\r\n  const vec4 bitSh = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0);\r\n  const vec4 bitMsk = vec4(0.0, 1.0\/256.0, 1.0\/256.0, 1.0\/256.0);\r\n  vec4 res = fract(value * bitSh);\r\n  res -= res.xxyz * bitMsk;\r\n  return res;\r\n}\r\n<\/pre>\n<p>Unpacking a [0-1] float value from a 4D vector where each component was a 8-bits integer:<\/p>\n<pre>\r\nfloat unpackFloatFromVec4i(const vec4 value)\r\n{\r\n  const vec4 bitSh = vec4(1.0\/(256.0*256.0*256.0), 1.0\/(256.0*256.0), 1.0\/256.0, 1.0);\r\n  return(dot(value, bitSh));\r\n}\r\n<\/pre>\n<p>Source of these codes: <a href=\"http:\/\/www.gamedev.net\/community\/forums\/topic.asp?topic_id=463075\">Gamedev forums<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Packing a [0-1] float value into a 4D vector where each component will be a 8-bits integer: vec4 packFloatToVec4i(const float value) { const vec4 bitSh = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0); const vec4 bitMsk = vec4(0.0, 1.0\/256.0, 1.0\/256.0, 1.0\/256.0); vec4 res = fract(value * bitSh); res -= res.xxyz * bitMsk; return res; } Unpacking a [0-1] float value from a 4D vector where each component was &hellip; <a href=\"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">GLSL float to RGBA8 encoder<\/span> <span class=\"meta-nav\">&raquo;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,8],"tags":[297,18,637],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-opengl","category-programming","tag-float-to-rgba-encoder","tag-glsl","tag-programming"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Packing a [0-1] float value into a 4D vector where each component will be a 8-bits integer: vec4 packFloatToVec4i(const float value) { const vec4 bitSh = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0); const vec4 bitMsk = vec4(0.0, 1.0\/256.0, 1.0\/256.0, 1.0\/256.0); vec4 res = fract(value * bitSh); res -= res.xxyz * bitMsk; return res; } Unpacking a [0-1]\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"JeGX\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"JeGX&#039;s Lab | News en vrac \/ WP sandbox\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"GLSL float to RGBA8 encoder | JeGX&#039;s Lab\" \/>\n\t\t<meta property=\"og:description\" content=\"Packing a [0-1] float value into a 4D vector where each component will be a 8-bits integer: vec4 packFloatToVec4i(const float value) { const vec4 bitSh = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0); const vec4 bitMsk = vec4(0.0, 1.0\/256.0, 1.0\/256.0, 1.0\/256.0); vec4 res = fract(value * bitSh); res -= res.xxyz * bitMsk; return res; } Unpacking a [0-1]\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2008-06-04T09:36:39+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2011-09-07T19:45:18+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"GLSL float to RGBA8 encoder | JeGX&#039;s Lab\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Packing a [0-1] float value into a 4D vector where each component will be a 8-bits integer: vec4 packFloatToVec4i(const float value) { const vec4 bitSh = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0); const vec4 bitMsk = vec4(0.0, 1.0\/256.0, 1.0\/256.0, 1.0\/256.0); vec4 res = fract(value * bitSh); res -= res.xxyz * bitMsk; return res; } Unpacking a [0-1]\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/20080604\\\/glsl-float-to-rgba8-encoder\\\/#article\",\"name\":\"GLSL float to RGBA8 encoder | JeGX's Lab\",\"headline\":\"GLSL float to RGBA8 encoder\",\"author\":{\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/author\\\/jegx\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/20080604\\\/glsl-float-to-rgba8-encoder\\\/#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/84ced5670773799817f2f791816e1124fc739962b2fd55c366a685887c8287cd?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"JeGX\"},\"datePublished\":\"2008-06-04T10:36:39+01:00\",\"dateModified\":\"2011-09-07T20:45:18+01:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/20080604\\\/glsl-float-to-rgba8-encoder\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/20080604\\\/glsl-float-to-rgba8-encoder\\\/#webpage\"},\"articleSection\":\"OpenGL, Programming, float to rgba encoder, glsl, Programming\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/20080604\\\/glsl-float-to-rgba8-encoder\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/category\\\/programming\\\/#listItem\",\"name\":\"Programming\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/category\\\/programming\\\/#listItem\",\"position\":2,\"name\":\"Programming\",\"item\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/category\\\/programming\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/20080604\\\/glsl-float-to-rgba8-encoder\\\/#listItem\",\"name\":\"GLSL float to RGBA8 encoder\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/20080604\\\/glsl-float-to-rgba8-encoder\\\/#listItem\",\"position\":3,\"name\":\"GLSL float to RGBA8 encoder\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/category\\\/programming\\\/#listItem\",\"name\":\"Programming\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/#person\",\"name\":\"JeGX\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/author\\\/jegx\\\/#author\",\"url\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/author\\\/jegx\\\/\",\"name\":\"JeGX\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/20080604\\\/glsl-float-to-rgba8-encoder\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/84ced5670773799817f2f791816e1124fc739962b2fd55c366a685887c8287cd?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"JeGX\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/20080604\\\/glsl-float-to-rgba8-encoder\\\/#webpage\",\"url\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/20080604\\\/glsl-float-to-rgba8-encoder\\\/\",\"name\":\"GLSL float to RGBA8 encoder | JeGX's Lab\",\"description\":\"Packing a [0-1] float value into a 4D vector where each component will be a 8-bits integer: vec4 packFloatToVec4i(const float value) { const vec4 bitSh = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0); const vec4 bitMsk = vec4(0.0, 1.0\\\/256.0, 1.0\\\/256.0, 1.0\\\/256.0); vec4 res = fract(value * bitSh); res -= res.xxyz * bitMsk; return res; } Unpacking a [0-1]\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/20080604\\\/glsl-float-to-rgba8-encoder\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/author\\\/jegx\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/author\\\/jegx\\\/#author\"},\"datePublished\":\"2008-06-04T10:36:39+01:00\",\"dateModified\":\"2011-09-07T20:45:18+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/#website\",\"url\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/\",\"name\":\"JeGX's Lab\",\"alternateName\":\"The Infamous Lab\",\"description\":\"News en vrac \\\/ WP sandbox\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ozone3d.net\\\/blogs\\\/lab\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"GLSL float to RGBA8 encoder | JeGX's Lab","description":"Packing a [0-1] float value into a 4D vector where each component will be a 8-bits integer: vec4 packFloatToVec4i(const float value) { const vec4 bitSh = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0); const vec4 bitMsk = vec4(0.0, 1.0\/256.0, 1.0\/256.0, 1.0\/256.0); vec4 res = fract(value * bitSh); res -= res.xxyz * bitMsk; return res; } Unpacking a [0-1]","canonical_url":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/#article","name":"GLSL float to RGBA8 encoder | JeGX's Lab","headline":"GLSL float to RGBA8 encoder","author":{"@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/author\/jegx\/#author"},"publisher":{"@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/84ced5670773799817f2f791816e1124fc739962b2fd55c366a685887c8287cd?s=96&d=mm&r=g","width":96,"height":96,"caption":"JeGX"},"datePublished":"2008-06-04T10:36:39+01:00","dateModified":"2011-09-07T20:45:18+01:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/#webpage"},"isPartOf":{"@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/#webpage"},"articleSection":"OpenGL, Programming, float to rgba encoder, glsl, Programming"},{"@type":"BreadcrumbList","@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.ozone3d.net\/blogs\/lab#listItem","position":1,"name":"Home","item":"https:\/\/www.ozone3d.net\/blogs\/lab","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/category\/programming\/#listItem","name":"Programming"}},{"@type":"ListItem","@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/category\/programming\/#listItem","position":2,"name":"Programming","item":"https:\/\/www.ozone3d.net\/blogs\/lab\/category\/programming\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/#listItem","name":"GLSL float to RGBA8 encoder"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ozone3d.net\/blogs\/lab#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/#listItem","position":3,"name":"GLSL float to RGBA8 encoder","previousItem":{"@type":"ListItem","@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/category\/programming\/#listItem","name":"Programming"}}]},{"@type":"Person","@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/#person","name":"JeGX"},{"@type":"Person","@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/author\/jegx\/#author","url":"https:\/\/www.ozone3d.net\/blogs\/lab\/author\/jegx\/","name":"JeGX","image":{"@type":"ImageObject","@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/84ced5670773799817f2f791816e1124fc739962b2fd55c366a685887c8287cd?s=96&d=mm&r=g","width":96,"height":96,"caption":"JeGX"}},{"@type":"WebPage","@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/#webpage","url":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/","name":"GLSL float to RGBA8 encoder | JeGX's Lab","description":"Packing a [0-1] float value into a 4D vector where each component will be a 8-bits integer: vec4 packFloatToVec4i(const float value) { const vec4 bitSh = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0); const vec4 bitMsk = vec4(0.0, 1.0\/256.0, 1.0\/256.0, 1.0\/256.0); vec4 res = fract(value * bitSh); res -= res.xxyz * bitMsk; return res; } Unpacking a [0-1]","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/#website"},"breadcrumb":{"@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/#breadcrumblist"},"author":{"@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/author\/jegx\/#author"},"creator":{"@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/author\/jegx\/#author"},"datePublished":"2008-06-04T10:36:39+01:00","dateModified":"2011-09-07T20:45:18+01:00"},{"@type":"WebSite","@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/#website","url":"https:\/\/www.ozone3d.net\/blogs\/lab\/","name":"JeGX's Lab","alternateName":"The Infamous Lab","description":"News en vrac \/ WP sandbox","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.ozone3d.net\/blogs\/lab\/#person"}}]},"og:locale":"en_US","og:site_name":"JeGX's Lab | News en vrac \/ WP sandbox","og:type":"article","og:title":"GLSL float to RGBA8 encoder | JeGX's Lab","og:description":"Packing a [0-1] float value into a 4D vector where each component will be a 8-bits integer: vec4 packFloatToVec4i(const float value) { const vec4 bitSh = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0); const vec4 bitMsk = vec4(0.0, 1.0\/256.0, 1.0\/256.0, 1.0\/256.0); vec4 res = fract(value * bitSh); res -= res.xxyz * bitMsk; return res; } Unpacking a [0-1]","og:url":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/","article:published_time":"2008-06-04T09:36:39+00:00","article:modified_time":"2011-09-07T19:45:18+00:00","twitter:card":"summary","twitter:title":"GLSL float to RGBA8 encoder | JeGX's Lab","twitter:description":"Packing a [0-1] float value into a 4D vector where each component will be a 8-bits integer: vec4 packFloatToVec4i(const float value) { const vec4 bitSh = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0); const vec4 bitMsk = vec4(0.0, 1.0\/256.0, 1.0\/256.0, 1.0\/256.0); vec4 res = fract(value * bitSh); res -= res.xxyz * bitMsk; return res; } Unpacking a [0-1]"},"aioseo_meta_data":{"post_id":"113","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-08 08:07:15","updated":"2025-11-24 12:19:56","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ozone3d.net\/blogs\/lab\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ozone3d.net\/blogs\/lab\/category\/programming\/\" title=\"Programming\">Programming<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tGLSL float to RGBA8 encoder\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.ozone3d.net\/blogs\/lab"},{"label":"Programming","link":"https:\/\/www.ozone3d.net\/blogs\/lab\/category\/programming\/"},{"label":"GLSL float to RGBA8 encoder","link":"https:\/\/www.ozone3d.net\/blogs\/lab\/20080604\/glsl-float-to-rgba8-encoder\/"}],"views":9482,"_links":{"self":[{"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":0,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}