{"id":4775,"date":"2018-05-26T14:26:57","date_gmt":"2018-05-26T06:26:57","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=4775"},"modified":"2018-05-26T14:26:57","modified_gmt":"2018-05-26T06:26:57","slug":"fire-effect-using-customrendertexture","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2018\/05\/26\/fire-effect-using-customrendertexture\/","title":{"rendered":"Fire Effect Using CustomRenderTexture"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4776\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2018\/05\/26\/fire-effect-using-customrendertexture\/unity-fire-effect\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/05\/unity-fire-effect.gif?fit=228%2C158&amp;ssl=1\" data-orig-size=\"228,158\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"unity-fire-effect\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/05\/unity-fire-effect.gif?fit=228%2C158&amp;ssl=1\" class=\"alignnone size-full wp-image-4776\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/05\/unity-fire-effect.gif?resize=228%2C158&#038;ssl=1\" alt=\"\" width=\"228\" height=\"158\" \/><\/p>\n<p>Converted this <a href=\"https:\/\/www.youtube.com\/watch?v=X0kjv0MozuY\" target=\"_blank\" rel=\"noopener\">fire effect<\/a> (by The Coding Train) into unity <a href=\"https:\/\/docs.unity3d.com\/Manual\/CustomRenderTextures.html\" target=\"_blank\" rel=\"noopener\">customrendertexture<\/a> + shader.<\/p>\n<p>Added fire gradient color (by moving the fire calculation into alpha channel).<\/p>\n<p><strong>Unity Project Sources<\/strong><\/p>\n<p><a href=\"https:\/\/github.com\/unitycoder\/FireEffect\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/unitycoder\/FireEffect<\/a><\/p>\n<hr \/>\n<p><strong>References<\/strong><\/p>\n<ul>\n<li>CustomRenderTexture (was added to unity in 2017.1) <a href=\"https:\/\/docs.unity3d.com\/Manual\/CustomRenderTextures.html\" target=\"_blank\" rel=\"noopener\">https:\/\/docs.unity3d.com\/Manual\/CustomRenderTextures.html<\/a><\/li>\n<li>Keijiros example project (reaction-diffusion) <a href=\"https:\/\/github.com\/keijiro\/RDSystem\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/keijiro\/RDSystem<\/a><\/li>\n<li>Fire Effect algorithm <a href=\"https:\/\/web.archive.org\/web\/20160418004150\/http:\/\/freespace.virgin.net\/hugo.elias\/models\/m_fire.htm\" target=\"_blank\" rel=\"noopener\">https:\/\/web.archive.org\/web\/20160418004150\/http:\/\/freespace.virgin.net\/hugo.elias\/models\/m_fire.htm<\/a><\/li>\n<li>The Coding Train fire effect tutorial <a href=\"http:\/\/thecodingtrain.com\/CodingChallenges\/103-fire-effect.html\" target=\"_blank\" rel=\"noopener\">http:\/\/thecodingtrain.com\/CodingChallenges\/103-fire-effect.html<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Converted this fire effect (by The Coding Train) into unity customrendertexture + shader. Added fire gradient color (by moving the fire calculation into alpha channel). Unity Project Sources https:\/\/github.com\/unitycoder\/FireEffect References CustomRenderTexture (was added to unity in 2017.1) https:\/\/docs.unity3d.com\/Manual\/CustomRenderTextures.html Keijiros example project (reaction-diffusion) https:\/\/github.com\/keijiro\/RDSystem Fire Effect [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4776,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Fire Effect Using Unity CustomRenderTexture #codingflames","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[13,3],"tags":[1048,50,1046,105,734,1047,14],"class_list":["post-4775","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shaders","category-unity3d","tag-customrendertexture","tag-effect","tag-fire","tag-fx","tag-rendertexture","tag-rt","tag-shader"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/05\/unity-fire-effect.gif?fit=228%2C158&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1f1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=4775"}],"version-history":[{"count":1,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4775\/revisions"}],"predecessor-version":[{"id":4777,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4775\/revisions\/4777"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/4776"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=4775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=4775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=4775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}