{"id":7863,"date":"2019-08-11T06:05:56","date_gmt":"2019-08-11T05:05:56","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=7863"},"modified":"2019-08-11T06:05:56","modified_gmt":"2019-08-11T05:05:56","slug":"p0-a4-part-600-debuggingrefactoring","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p0-a4-part-600-debuggingrefactoring\/","title":{"rendered":"P0-A4: Part 600: Debugging\/Refactoring"},"content":{"rendered":"<p>I have tried a few solutions to add my current background to the Azure sky asset, which haven&#8217;t worked.<\/p>\n<p>However, I have found one that I think will work.<\/p>\n<p>The idea is to render to current skybox into a rendertexture, and then use that rendertexture as the skybox material for the sky background, instead of the texture. This operation is a little slow, but it only needs to be done when the background changes, which happens very ocassionaly.<\/p>\n<p>I am having some issues capturing the render texture and getting it to display properly (The asset requires an equirectangular texture, and converting from a rendertexture to an equirectangular texture causes some seaming and distortion issues), but I am making progress.<\/p>\n<p><a href=\"https:\/\/imgur.com\/dHAf83W\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/dHAf83Wm.jpg\" title=\"source: imgur.com\" \/><\/a><br \/>\n<a href=\"https:\/\/imgur.com\/E3uBCjB\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/E3uBCjBm.png\" title=\"source: imgur.com\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have tried a few solutions to add my current background to the Azure sky asset, which haven&#8217;t worked. However, I have found one that I think will work. The idea is to render to current skybox into a rendertexture, and then use that rendertexture as the skybox material for the sky background, instead of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,17,19,10,11],"tags":[],"class_list":["post-7863","post","type-post","status-publish","format-standard","hentry","category-astral-realms","category-p-0","category-p0-a4","category-software-and-games","category-spiritus-astrum","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"builder_content":"","_links":{"self":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/7863"}],"collection":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/comments?post=7863"}],"version-history":[{"count":1,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/7863\/revisions"}],"predecessor-version":[{"id":7864,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/7863\/revisions\/7864"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=7863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=7863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=7863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}